Start Multiple tomcat servers and tomcat servers at the same time during local development

Source: Internet
Author: User

Start Multiple tomcat servers and tomcat servers at the same time during local development

1. Do not set CATALINA_HOME in environment variables;

2. Modify the server. xml file in the conf subdirectory of the installation directory respectively:

A. Modify the http access port (port 8080 by default) and set port 8080 to a port number that is not used by tomcat. The port number is used to access the web.

B. Modify the Shutdown port (default port 8005) and 8005 to the unused port number, for example, 8055.

C. Modify port 8009 to a port number that is not in use, for example, 8009 (note: the port numbers in the two files must be different)

3. Start two tomcat servers in sequence.

4. If you are using the tomacat server integrated with MyEclipse, You need to select the tomcat Server to be used in the server after changing the Server. xml in the corresponding location,

Right-click -- Configure Server Connector -- Port Number and change it to the corresponding Port in server. (The default value is 8080. If this parameter is not modified, the port value in server. xml is automatically modified to 8080 after startup.

Summary: it is actually to separate the port numbers used in tomcat (note that there are three port numbers to be modified)

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.