Home>Article>Operation and Maintenance> Where to modify the tomcat port number
The tomcat port number is modified in the server.xml file. Specific methods: 1. Enter the conf directory in the tomcat installation directory; 2. Open the server.xml file; 3. Modify the access port number as needed; 4. Restart tomcat.
Modifying the tomcat port number is generally done in the server.xml file.
(Learning video recommendation:php video tutorial)
The modification method is as follows:
1. Open the Tomcat installation directory and enter the subdirectory conf.
#2. Find [server.xml] in the [conf] directory.
3. Open server.xml
4. Modify the Shutdown port
PS: The default port number is 8005
5. Modify the access port
PS: The default port number is 8080
6. Modify the 8009 port. Just change 8009 to an unoccupied port number
7. Restart Tomcat
Related recommendations:apache
The above is the detailed content of Where to modify the tomcat port number. For more information, please follow other related articles on the PHP Chinese website!