Friday 13 March 2015

Running two Apache-Tomcat instances on the same server

Inorder to install tomcat you can follow the link below:

------
http://www.maninmanoj.com/2015/03/installing-apache-tomcat-on-linux.html
-----

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:
-----
/usr/local/apache-tomcat-7.0.57/conf/server.xml
-----

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

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/startup.sh ==> To start
/usr/local/apache-tomcat-7.0.57/bin/shutdown.sh ==> To shutdown
--------

To check version:
--------
/usr/local/tomcat1/bin/version.sh
--------

:)

No comments:

Post a Comment

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