How to run two or more Tomcat servers on one computer

One computer runs multiple tomcat configuration methods at the same time:

1. The compressed version of tomcat cannot be used with the installed version.

2. The configuration of the first tomcat remains unchanged.

3. Go to Control Panel, find Advanced System Settings

 

4. Click Environment Variables, add CATALINA_HOME2 to the system variables, the value is the address of the new tomcat.

5. Modify the startup.bat in the new tomcat, and change CATALINA_HOME to CATALINA_HOME2.

6. Modify catalina.bat in the new tomcat, and change CATALINA_HOME to CATALINA_HOME2.

7. Modify the conf/server.xml file:

Bundle

<Connector port="8099" protocol="HTTP/1.1"
           connectionTimeout="20000"
           redirectPort="8443" />

The port number in is changed to an unused interface, I changed it to 8099;

 

After saving, start it.

Guess you like

Origin blog.csdn.net/JSUITDLWXL/article/details/125553881