In this post we will see how to run multiple tomcat instances on a single machine and under a single user account. Setup We already see how to run tomcat in Ubuntu machine in my previous blog ( http://kmlsarwar.blogspot.com/2014/08/how-to-install-apache-tomcat-on-ubuntu.html ). Step One—Create folder Create two folder named " tomcat-instance1 " and " tomcat-instance2 " anywhere, and copy conf, logs, temp, webapps and work folder from CATALINA_HOME folder and change conf/server.xml file in tomcat-instance1 and tomcat-instance2 . we need to change 3 port shutdown port, connector port and ajp port. Shutdown port - this port is used for shutdown the tomcat. when we call the shutdown.sh script they send signal to shutdown port. this port listen by tomcat java process. if signal is received the that process then its cleanup and exit by itself. Connector Port -This port is actual port to expose the applic...
A blog about Java and Java framework related technologies