Multiple Tomcat servers are installed on one host, and multiple tomcat servers on one host
1. Download and decompress Tomcat, and name it Tomcat_Server_01 and Tomcat_Server_02;
2. Go to the Tomcat_Server_01 \ bin directory, edit the service file, and set
Set SERVICE_NAME = Tomcat8
Change
Set SERVICE_NAME = Tomcat8_1
3. Run the service. bat install command to install it;
4. Go to the Tomcat_Server_02 \ bin directory, edit the service file, and change SERVICE_NAME to Tomcat8_2;
5. Go to the Tomcat_Server_02 \ conf directory, edit the server File, and change all the ports starting with 8 to starting with 9;
6. Run the service. bat install command to install it;
7. Run services. msc. You can see that two Tomcat services have been installed and started separately;
8. Open the browser and enter http: // localhost: 8080/and http: // localhost: 9080/. Both servers are running normally.