How to start two tomcat simultaneously in one eclipse

Source: Internet
Author: User

For example: There are two versions of Tomcat, one 5.*, one 6.*, and since two projects are deployed under two versions of Tomcat, you need to start two tomcat at the same time, here are the methods:

1. Special note: Do not set catalina_home

2. Modify the Server.xml file in the Conf subdirectory of the installation directory, respectively:
A. Modify the HTTP access port (the default is 8080 port, I am used to the installation of the time to change to another port number, such as 5.* changed to 8081,6.* 8086), 8080 is modified to Tomcat is not used port number. The port number you set here is the port number that you will use to access the web later.

B. Modify one of the Tomcat's shutdown ports (in Server.xml, the default is Port 8005) and change 8005 to a port number that is not in use, such as 8055.

C. Modify one of the Tomcat's 8009 ports, modify the 8009 to not use the port number, (also modified in server.xml) For example 8099 (note: Two files in the corresponding port number or the same)

3. Start two tomcat in turn. Can all be started in eclipse (for example my tomcat5.0 is a plugin version, there is a cat in eclipse, and the other 6.0 version is through MyEclipse in Windows--perfrences--... Configuration), can also be started by the corresponding Startup.bat, can also be started with a elipse, another through the Startup.bat boot.

How to start two tomcat simultaneously in one eclipse

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.