Friday, 13 March 2015

Running two Apache-Tomcat instances on the same server

Inorder to install tomcat you can follow the link below:


You will have to edit and change ports in "server.xml" file of any one of the tomcat installed.

Assuming "server.xml" file is located below:

Change the following ports in the above file:
Server port="8025"
Connector port="8080" ==> port to which tomcat will be listening

Connector port="8022" protocol="AJP/1.3"  ---> AJP

Now, to start and stop tomcat use the below scripts:

/usr/local/apache-tomcat-7.0.57/bin/ ==> To start
/usr/local/apache-tomcat-7.0.57/bin/ ==> To shutdown

To check version:


No comments:

Post a Comment

Note: only a member of this blog may post a comment.