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 "/>
----------------------------------------------------------------