[email protected] ~]# vi/usr/local/tomcat/apache-tomcat-8.0.14/conf/tomcat-users.xml
Add the following red section
<tomcat-users>
<!--
Note:by default, no user is included in the "Manager-gui" role required
To operate the "/manager/html" Web application. If you wish the use of this app,
You must define such a user-the username and password is arbitrary.
-
<!--
Note:the sample user and role entries below is wrapped in a comment
And thus is ignored when the reading this file. Do not forget to remove
<!.. .. > that surrounds them.
-
<role rolename= "Tomcat"/>
<role rolename= "Role1"/>
<role rolename= "Manager"/>
<role rolename= "admin"/>
<role rolename= "Admin-gui"/>
<role rolename= "Admin-script"/>
<role rolename= "Manager-gui"/>
<role rolename= "Manager-script"/>
<role rolename= "Manager-jmx"/>
<role rolename= "Manager-status"/>
<user username= "admin" password= "Vqiao" roles= "Admin,manager,role1,tomcat,admin-gui,admin-script,manager-gui, Manager-script,manager-jmx,manager-status "/>
</tomcat-users>
2. Save, exit
3. Restart Tomcat
[Email protected] ~]#/usr/local/tomcat/apache-tomcat-8.0.14/bin/startup.sh
Tomcat-users.xml Configuration management user for Linux tomcat