One computer launches multiple Tomcat services at the same time
Sometimes we need to start multiple Tomcat services on a single computer at the same time, how to configure this time?
One, to use the green version of Tomcat, you cannot use the installation version.
Second, configure the first Tomcat.
Third, now configure the second Tomcat.
1. Locate the Service.xml file in the Tomcat\config directory. Locate < Server port= "8005" shutdown= "shutdown" >, modify port for unused ports, for example 8006.
2, continue to find <</span>
connectiontimeout= "20000"
redirectport= "8443"/> modify port for unused ports, such as 8081. Note that the ports set in the 1 cannot be the same.
3, continue to find < Connector port= "8009" protocol= "ajp/1.3 " redirectport= "8443"/> Change the port to a port that is not used, such as 8091. Note that this is not the same as the 1, 2-step set of ports.
The above three steps set the port at three places, but three places are different and cannot be the same as other Tomcat configuration ports.
If you need to continue configuring Tomcat, repeat the third big step.
This time the same computer can run multiple tomcat.
One computer launches multiple Tomcat services at the same time