1. Windows
This section describes how to run two Tomcat services of the same version on one machine, and how to install multiple Tomcat services.
Install two Tomcat servers on Windows XP. Download one installation version and one non-installation package on the main interface.
Http://tomcat.apache.org/
First install a tomcat version. After installation, start localhost: 8080. The installation is successful if you see the following interface:
Then write a script installservice. bat with the following content:
Set java_home = C:/program files/Java/jdk1.6.0 _ 24
Set catalina_home = D:/program files/Apache-Tomcat-7.0.29
"D:/program files/Apache-Tomcat-7.0.29/bin/service. Bat" Install mytomcat6
Note that all the above paths should follow your actual JDK installation path and the unzipping path of your Tomcat non-installation version. Save and run the bat script.
Mytomcat6 is just a service alias. Any one can be repeated.
It indicates that the installation is successful. Open your service management and check that two Tomcat registration services are available, but their names are different.
If you need to run more than two servers, repeat the steps above for non-installed versions. Make sure that the port numbers of scripts in CONF/server. XML are not the same.
2. Ubuntu version
This is even simpler. Download The tar.gz Linux version on the atat network, decompress multiple copies, modify the port numbers in CONF/server. XML to different versions, and then start the/bin/start. Sh script.