Can you enable multiple Tomcat servers at the same time? How to implement

  
in Linux? Tomcat server is a very common server in Linux system. Sometimes we need more than one Tomcat server, which may require multiple servers to be started at the same time. Can this be done? If so, what method can I use?

The Tomcat server used is a zip version, a non-installed version. Take two examples:

After installing the second Tomcat, open the server.xml file in the conf subdirectory under the installation directory and look for the following three places:

(1) Modify Http access port (default is 8080 port)

minProcessors="5"maxProcessors="75"

enableLookups="true"redirectPort="8443"

acceptCount="100"debug="0"connectionTimeout="20000"

useURIValidationHack="false"disableUploadTimeout="true"/>

(probably at 86 Modify the 8080 to the port number that the first tomcat is not using. The port number set here is the port number used when accessing the web in the future.

(2) Modify the Shutdown port (the default is 8005 port)

(about 13 lines or so) Modify 8005 to a port number that is not in use, for example, 8095

(3) Modify port 8009

port="8009"minProcessors="5"maxProcessors="75"

enableLookups="true"redirectPort="8443"

acceptCount="10"debug="0"connectionTimeout="20000"

useURIValidationHack="false"

protocolHandlerClassName="org.apache.jk. server.JkCoyoteHandler"/>

(about 107 lines or so) Modify 8009 to a port number that is not in use, for example, 8099

This is fine.

It is easy to implement multiple Tomcat servers at the same time, so you can refer to the method of the above tutorial. It is best to carefully complete the steps to avoid errors, because it involves some aspects of modifying the port. I hope these methods are correct. Everyone is helpful.

Copyright © Windows knowledge All Rights Reserved