First Windows Next install one Tomcat We all install , Deploy directly according to official documents OK, But installing multiple Tomcat You will encounter some unclear problems , Here I am on the same channel Windows Install two on the server Tomcat Sort it out （ Of course, three or more Tomcat In computer memory , If performance and so on allow, it can be compared to deployment ）：
- First of all, a computer has been deployed Tomcat, Now the service needs to deploy another Tomcat Use , The first step is to copy directly Tomcat Do not install the folder to the installation directory
- Then modify the environment variable , Deploy the first Tomcat The environment variables have been added when the CATALINA_HOME, Now add a new variable named CATALINA_HOME_8081（ Mainly with the front of CATALINA_HOME Distinguish ）, The variable value is the newly added one Tomcat Directory of installation free files , Paste it directly OK
- And then modify Tomcat Configuration file for conf Under the server.xml file , Modify the port
8080 ---- Change it to 8081
8443 ---- Change it to 8444
8005 ---- Change it to 8006
8009 ---- Change it to 8010 , In short, the principle is that the original default port has been first Tomcat Occupy , Change to an unoccupied port number .
4. And then modify bin Under the Catalina.bat、startup.bat、shutdown.bat file , Will be inside CATALINA_HOME All changed CATALINA_HOME_8081, It works like this startup.bat Start the second Tomcat success .