How to start multiple Tomcat servers at the same time
| Today, I saw a friend on the Forum about the problem of starting two Tomcat servers at the same time. After I searched the internet, I thought the following should be a good solution. I hope there will be some improvements and my friends will comment on it more! All Tomcat servers I use are zip and non-installed. Take two examples: After installing the second tomcat, go to the conf subdirectory under the installation directory to open the server. xml file and find the following three places: (1) modify the HTTP access port (default: port 8080) <Connector classname = "org. Apache. Coyote. tomcat4.coyoteconnector" Port = "8080" Minprocessors = "5" maxprocessors = "75" Enablelookups = "true" redirectport = "8443" Acceptcount = "100" DEBUG = "0" connectiontimeout = "20000" Useurivalidationhack = "false" disableuploadtimeout = "true"/>(About 86 lines) Change 8080 to the port number that is not used by the First tomcat. The port number is used to access the Web.(2) modify the shutdown port (default: Port 8005) <Server port = "8005" shutdown = "shutdown" DEBUG = "0">(About 13 rows) Change 8005 to a port number that is not in use, for example, 8095(3) modify the JVM startup port (default: Port 8009) <Connector classname = "org. Apache. Coyote. tomcat4.coyoteconnector" 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 rows) Change 8009 to a port number that is not in use, such as 8099 So there is no problem. |