Eclipse opens two tomcat at a time

Source: Internet
Author: User
Tags server port tomcat server

First set the environment variables:

Then modify the Startup.bat and Catalina.bat of one of the Tomcat down Bin folders to change all catalina_home inside to catalina_home2 and modify conf/ Server.xml file: Or simply change the port number in the beginning of the 8 to 9<server port= "8006" shutdown= "Shutdown" > to the port that is not used (original 8005).
<connector port= "8081" maxhttpheadersize= "8192"
maxthreads= "minsparethreads=" maxsparethreads= "75"
Enablelookups= "false" redirectport= "8443" acceptcount= "100"
connectiontimeout= "20000" disableuploadtimeout= "true"/> Change the port to a port that is not used (original 8080).
<connector port= "8010" enablelookups= "false" redirectport= "8443" protocol= "ajp/1.3"/> Change the port to a port that is not used (original 8009).
Start Startup.bat input localhost: port to test in eclipse to open two tomcat at the same time, first delete the original server, create a new Tomcat server,
The newly created server displays the configured port number information based on the imported Tomcat path, which can be started as long as the port number is different, double-click Server to view



From for notes (Wiz)

Eclipse opens two tomcat at a 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.