Tomcat Clustering.: Need: Tools Required
Tomcat Clustering.: Need: Tools Required
Need:
To keep the system up all the time.
Tools Required:
tomcat7
tomcat7 user instances
apache httpd
apache connector mod_jk
How to do?
Install tomcat server.
Run $sudo apt-get install tomcat7 tomcat7-user
This downloads and installs the tomcat7 and tomcat7-user at the default location (/var/lib/tomcat7)
Configure tomcat private instance and gui manager.
(adding entry to tomcat-users.xml for manager gui)
Refer : https://help.ubuntu.com/14.04/serverguide/tomcat.html
Create multiple tomcat user instances at the required locations and configure the ports of the tocats
accordingly.
Make sure no port numbers are repeated per VM.
Install httpd server.
Process:
1. Download the httpd server from the website. (http://httpd.apache.org/)
1.a Download supporting files of httpd server. (sudo apt-get install libapr1-dev libaprutil1-dev)
2. Extract the compressed tar. [Extraction can be done with command $ tar zxvf
<downloadedFileName>.tar.gz]
3. Enter the extracted folder ( $ cd <downloadedFileName>)
4. Run the command ./configure --prefix=<location_to_install> --enable-rewrite=shared --enableproxy=shared