Configure MyEclipse To Start Multiple Tomcat and my‑setomcat

Source: Internet
Author: User

Configure MyEclipse To Start Multiple Tomcat and my‑setomcat
In actual development, multiple projects are usually carried out at the same time, and switching back and forth is not convenient. In this case, you can deploy them under multiple tomcat servers.

Modify some configurations to start multiple tomcat servers at the same time

First, check the relevant information and see an article. One Myeclipse configures multiple Tomcat servers at the same time.

I tried it and it was complicated. This article is also reproduced everywhere, and I don't know who is the original

Not much about configuring tomcat in MyEclipse


If you have two tomcat servers, modify one of them.

Modify the server. xml file under tomcat \ conf


I,

Find

<Server port="8005" shutdown="SHUTDOWN">
Change
<Server port="8123" shutdown="SHUTDOWN">
PS: can be changed to any number, as long as there is no conflict (the same below)


II,

Find

<Connector port="8080" protocol="HTTP/1.1"                connectionTimeout="20000"                redirectPort="8443" />
Change
<Connector port="8888" protocol="HTTP/1.1"                connectionTimeout="20000"                redirectPort="8443" />


III,

Find

<Connector port="8009" protocol="AJP/1.3" redirectPort="8443" />
Change
<Connector port="8321" protocol="AJP/1.3" redirectPort="8443" />
This step can be left unchanged, but the following error will be reported during startup

Information: Port busy 8009 java.net. BindException: Address already in use: JVM_Bind
Running is not affected






In windows, how does one deploy myeclipse project with the same number of Tomcat servers?

This is simple. Set the tomcat port, compile the project in myeclipse, copy it to the tomcat webapps directory, and start your tomcat service.

How can we enable Tomcat with different ports at the same time? One is local deployment and the other is MyEclipse deployment.

----------------------------------------------------------------

You only need to change the connection ports of the two tomcat servers to different ones.

Take TOMCAT 5.0 as an example: Modify the conf-server. xml file.

The first port number is 8080.

<Connector port = "8080" maxThreads = "150" minSpareThreads = "25" maxSpareThreads = "75" enableLookups = "false" redirectPort = "8443" acceptCount = "100" debug =" 0 "connectionTimeout =" 20000 "disableUploadTimeout =" true "/>

The first port number is 8180.

<Connector port = "8180" maxThreads = "150" minSpareThreads = "25" maxSpareThreads = "75" enableLookups = "false" redirectPort = "8443" acceptCount = "100" debug =" 0 "connectionTimeout =" 20000 "disableUploadTimeout =" true "/>

----------------------------------------------------------------

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.