+
+Tomcat supports installation of multiple instances. You can have a single installation of tomcat with multiple instances running on different IP/Port combinations, or multiple tomcat versions, each running 1 or more instances on different IP/Ports.
+
+
+Each Instance folder will need the following structure
+
+
+- conf
+- logs
+- temp
+- webapps
+
+
+At a minimum, conf should contain a copy of the following files from CATALINA_HOME\conf\server.xml. Any files not copied and edited, will be picked up by default from CATALINA_HOME\conf, i.e. CATALINA_BASE\conf files override defaults from CATALINA_HOME\conf.
+
+
+
+You must edit CATALINA_BASE\conf\server.xml to specify a unique IP/port for the instance to listen on. Find the line that contains
<Connector port="8080"
and update the port number so as to specify a unique port
+
+
+To install an instance, first set the CATALINA_HOME environment variable to the name of the tomcat directory. Then create a second environment variable CATALINA_BASE and point this to the instance folder. Then run "service install" command specifying a service name
+
+
+
| | |
|
+set CATALINA_HOME=c:\tomcat_7
+set CATALINA_BASE=c:\tomcat_7\instances\instance1
+service install instance1
+ | |
| | |
+
+
+To modify the service settings, you can run tomcat7w //ES//instance1
+
+
+For additional instances, create additional instance folder, update the CATALINA_BASE environment variable, and run the service install again
+
+
+
| | |
|
+set CATALINA_BASE=c:\tomcat_7\instances\instance2
+service install instance2
+ | |
| | |
+