010 modify tomcat server port number

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

  1. Use Notepad to open the file servlet.xml Tomcat installation directory under the conf files in a folder.
  2. Locate the following code in servlet.xml file:
    • <connector port="8080" protocol="HTTP/1.1" connectoinTimeout="20000" redirectPort="8443">
  3. 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.
  4. After the setup is complete you need to restart to take effect

Guess you like

Origin www.cnblogs.com/cglib/p/11996377.html