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