Last week, i install multiple tomcat instances in one server.Usually most of the services are listening to single port.which means in a machine, one tomcat instance will listen one port.So for running multiple Tomcat instances in a single server, we have to change the ports.The steps are given below

1.) Download three tomcat instances and unpack it in three different folders.

2.) Then edit WEBSERVER_HOME/conf/server.xml file individually.

for eg.

The first Tomcat is in the location /opt/Ajith/Tomcat (This is the WEBSERVER_HOME).

edit WEBSERVER_HOME/conf/server.xml

when we unpack the tomcat, the server.xml will look like this

[code lang="shell"]

<Connector port="10090" protocol="HTTP/1.1"


redirectport="8443"  />


As i explained earlier, No two tomcat server(or any other server) will not  listen/run in same port.

So we have to change the ports accordingly.

[code lang="shell"]

<Connector port="10030" protocol="HTTP/1.1"


redirectport="8553"  />


3.) Then restart the tomcat.

4.) But most of the cause it will not start.Because we have to change some more ports on server.xml .

So we have to change “shutdown port” and “AJP” port.

[code lang="shell"]

<Server port="8005" shutdown="SHUTDOWN">


<Connector port="8010" protocol="AJP/1.3" redirectport="8553" />


Note:Make sure that the redirect port should be same in one tomcat server.xml(in this cause 8553″

5.)Restart the tomcat

Repeat the steps in other tomcat with different ports which is not used in that machine.