The reason for writing this blog post: Because the MAVEN project was released, it was never accessible. So I reconfigured Tomcat by the way.
1. First download a Tomcat7 version of the ZIP package to the official website, after decompression, into the C-drive (according to personal needs to place).
2. Modify the Conf/tomcat-users.xml file:
<role rolename= "Manager-gui"/>
<role rolename= "Admin-gui"/>
<user username= "admin" password= "admin" roles= "Manager-gui,admin-gui"/>
Add the following lines: A new Administrator admin privileges user, password is admin (can be set according to individual needs)
Note: These three rows are added and cannot be accessed if written in the following two lines.
<role rolename= "Tomcat"/>
<user username= "admin" password= "admin" roles= "manager"/>
3. Configure Environment variables
First add the Cataline_home variable, this is the path of Tomcat
Then add bin and lib two paths after the path variable.
4. Input: http://localhost:8080/manager/html
Login with Admin+admin, you can enter the Tomcat management page, if there is 403, is above 2. No pairing.
5. Of course, you can also go to modify the Access port Conf/server.xml file Ctrl+f search 8080 and then change to the port you need. Usually change to 6080 to avoid conflicts with other ports.
Ps:
If eclipse cannot add a tomcat container, you can reconfigure it this way, configure the environment variable, restart Eclipse, add the Tomcat path through WINDOW-TOMCAT, configure the server and create a new Tomcat container. Load Web projects into containers for pleasant access.
"Tomcat" Configuration Tomcat