Current location - Quotes Website - Collection of slogans - How to modify tomcat port number under windows
How to modify tomcat port number under windows
1. Navigate to the installation directory of Tomcat: right-click Tomcat, select Properties, and click the location to open the file;

2. Find the file "server.xml" in the directory of "Tomcat7.0\conf" and open it with VS or other tools that can interpret xml files;

3. Find the coding port = "8080 ",change 8080 to 80, and click" Save "to finish the modification;

4. The server needs to be restarted after modification: click stop to stop the server, and then click start to start the server;

5. After restarting the server, open the browser, enter "http://localhost" in the address bar, and press enter to display.