When the first Tomcat is started, the ports in the server.xml behind Tomcat will still newspapers the port regardless of how they are changed. Later running in DOS only to find that all Tomcat will find Catalina_home and catalina_base These two environment variables, so the steps are as follows:
1. Tomcat using a compressed version cannot be used with the installation version.
2. The configuration of the first Tomcat does not change.
3. Add the environment variable catalina_home2, which is the new Tomcat address, add the environment variable CATALINA_BASE2, and the value is the new Tomcat address.
4. Modify the Startup.bat in the new Tomcat to change the catalina_home to Catalina_home2.
5. Modify the Catalina.bat in the new Tomcat and change the catalina_home to Catalina_home2,catalina_base to Catalina_base2.
6. Modify the Conf/server.xml file:
6.1 <server port= "8005" shutdown= "shutdown" > change the port to a port that is not used.
6.2 <connector port= "8080" 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.
6.3<connector port= "8009"
Enablelookups= "false" redirectport= "8443" protocol= "ajp/1.3"/> To change the port to a port that is not used.
7 Success!
Multiple Tomcat configuration methods running on a single computer