A computer running multiple tomcat configuration methods at the same time:
1. Using the compressed version of tomcat cannot use the installed version.
2. The configuration of the first tomcat remains unchanged.
3. Increase the environment variable CATALINA_HOME2, the value is the address of the new tomcat.
4. Modify the startup.bat in the new tomcat and change the CATALINA_HOME to CATALINA_HOME2.
5. Modify catalina.bat in the new tomcat and change CATALINA_HOME to CATALINA_HOME2.
6. Modify the conf/server.xml file:
6.1 <Server port="8005" shutdown="SHUTDOWN">Change the port to an unused port, such as 8006.
6.2 <Connector port="8080" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" /> Change the port to an unused port, such as 8082.
6.3<Connector port="8090" protocol="AJP/1.3" redirectPort="8443" /> Change the port to an unused port, such as 8092.
7. In this way, multiple tomcats can be run on the same computer at the same time.