Home > Article > Web Front-end > In which file is the tomcat service port modified?
The configuration file of the Tomcat service port is conf/server.xml. The modification steps are as follows: 1. Open the configuration file; 2. Find the Connector tag and modify the port attribute value to the desired port number; 3. Save the file; 4. Make sure the port is not used by other applications; 5. Restart the Tomcat server to make the modification Take effect.
Modify Tomcat service port
Port file path
Tomcat The service port is usually configured in the following file:
Modification steps
conf/server.xml
file. <code class="xml"><Connector port="8080" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443" /></code>
port
attribute value and change it to the port number you want. For example, to change the port to 9080: <code class="xml"><Connector port="9080" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443" /></code>
NOTE
The above is the detailed content of In which file is the tomcat service port modified?. For more information, please follow other related articles on the PHP Chinese website!