One computer launches multiple Tomcat services at the same time

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.