Steps:
1. Login to CentOS and enter the installation directory for Tomcat [/usr/local/apache-tomcat-7.0.68/conf] to locate the file Tomcat-users.xml and change its contents to:
<role rolename= "Tomcat"/> <role rolename= "Role1"/> <role rolename= "manager"/> < Role rolename= "Manager-gui"/> <role rolename= "admin"/> <role rolename= "Admin-gui"/> <role rolename= "Manager-script"/> <role rolename= "manager-jmx"/> <role rolename= " Manager-status "/> <user username=" Tomcat "password=" Tomcat "roles=" Tomcat "/> <user username= " Both "password=" Tomcat "roles=" Tomcat,role1 "/> <user username=" Role1 "password=" Tomcat "roles=" Role1 "/ > <user username= "admin" password= "admin" roles= "tomcat,role1"/> <user username= "Tomcat" Password= "" roles= "Manager-gui"/> <user username= "******" password= "******" roles= "admin-gui,admin, Manager-gui,manager,manager-script,manager-jmx,manager-status "/>
As shown in.
2. Restart Tomcat to make the Tomcat-users.xml configuration effective. Go to Tomcat's [/usr/local/apache-tomcat-7.0.68/bin] directory and execute the command:./shutdown.sh close Tomcat. Then execute the command:./startup.sh to turn on Tomcat.
3, enter the HTTP://[TOMCAT server's ip]:8080/carriage return in the browser, enter the following interface.
You can see that the Tomcat installed in the CentOS system is Apache tomcat/7.0.68.
4, click on the "Manager App", enter the user name and Password dialog box, enter the Tomcat-users.xml file <user username= "******" password= "******" roles= " Admin-gui,admin,manager-gui,manager,manager-script,manager-jmx,manager-status "/>[in the yellow mark in the picture" Username and password corresponding values, you can login tomcat. How to deploy the project after landing, you can Baidu by yourself.
How to implement the Tomcat Server Web page deployment in CentOS