1. Added tomcat-related environment variables
For example, there are two tomcat,tomcat1 and TOMCAT2
2. Modify the Catalina.bat file
The first Tomcat does not change
The second Tamcat Catalina.bat
Path ${tomcat}/bin/catalina.bat
Replace the catalina_base in the file with the Catalina_2_base
Startup.bat under the second Tomcat directory
Path ${tomcat}/bin/startup.bat
Replace the catalina_home in the file with the Catalina_2_home
The Server.xml file in the second Tomcat conf directory
Path ${tomcat}/conf/server.xml
Server Prot Node Port modification
<server port= "8005" shutdown= "Shutdown" >
Change into
<server port= "9005" shutdown= "Shutdown" >
Connector Port Port Number modification
<connector port= "8080" protocol= "http/1.1"
connectiontimeout= "20000"
redirectport= "8443"/>
Change into
<connector port= "9080" protocol= "http/1.1"
connectiontimeout= "20000"
redirectport= "8443"/>
<connector port= "8009" protocol= "ajp/1.3" redirectport= "8443"/>
Change into
<connector port= "9009" protocol= "ajp/1.3" redirectport= "8443"/>
3. Start two Tomcat respectively
CMD into the bin directory under two Tomcat, respectively, to execute Startup.bat
Windows Tomcat Standalone deployment multi-application