Home>Article>Operation and Maintenance> Where to modify the tomcat port number

Where to modify the tomcat port number

王林
王林 Original
2020-11-16 11:16:37 29270browse

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.

Where to modify the tomcat port number

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.

Where to modify the tomcat port number

#2. Find [server.xml] in the [conf] directory.

Where to modify the tomcat port number

3. Open server.xml

4. Modify the Shutdown port

PS: The default port number is 8005

Where to modify the tomcat port number

5. Modify the access port

PS: The default port number is 8080

Where to modify the tomcat port number

6. Modify the 8009 port. Just change 8009 to an unoccupied port number

Where to modify the tomcat 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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn