1. Download the extracted version of Tomcat, and extract two times, respectively named Tomcat_server_01 and tomcat_server_02;
2. Enter the Tomcat_server_01\bin directory and edit the service file to
Set SERVICE_NAME=TOMCAT8
Switch
Set Service_name=tomcat8_1
3. Run service.bat install command, installation;
4. Enter the Tomcat_server_02\bin directory, edit the service file, and change the service_name to Tomcat8_2;
5. Enter the tomcat_server_02\conf directory, edit the Server file, and change the port number starting with 8 to start with 9;
6. Run service.bat install command, installation;
7. Running the services.msc, you can see that two Tomcat services have been installed and started separately;
8. Open the browser, enter http://localhost:8080/and http://localhost:9080/respectively, the two servers can be seen to run normally.
Multiple tomcat installed on a single host