Running multiple Tomcat instances in Windows
It is done by using one code base.
It turns out pretty easy..
I decide to run them as services so that they can be easily spotted in the Services GUI.
1. Download tomcat zip (not the windows installer one) and unzip to your destination.
2. Modify service.bat under bin by setting CATALINA_BASE to one of your instance directory which contains at least conf (change port number to be unique for each instance in server.xml), webapps (applications) and logs directories.
3. Run at cmd “service.bat install YOUR_PREFER_NAME”
4. Repeat 2-3 to configure more instances as services.
5. Go to Services GUI and start the services added..
That’s pretty much it.
It is done by using one code Tomcat base.
一台Windows机器同时运行多个Tomcat服务
