Example shows
Introduction to modify tomcat port numbers, and how to resolve conflicts when the port number.
Key Technology
Connector port in the server port sub-elements are arranged, and the server is the connection Timeout connection timeout, in milliseconds.
designing process
- Use Notepad to open the file servlet.xml Tomcat installation directory under the conf files in a folder.
- Locate the following code in servlet.xml file:
- <connector port="8080" protocol="HTTP/1.1" connectoinTimeout="20000" redirectPort="8443">
- The above code port = "8080" to port = "8081", can be set to Tomcat default port 8081. When modifying the port, to avoid conflict with the common port.
- After the setup is complete you need to restart to take effect