0% found this document useful (0 votes)
67 views

Tomcat Clustering.: Need: Tools Required

This document discusses setting up a clustered Tomcat environment using multiple Tomcat instances, an Apache HTTPD server, and the mod_jk connector. Key steps include: 1. Installing Tomcat on each VM and configuring private instances and the manager GUI. 2. Installing Apache HTTPD and compiling it with the --enable-rewrite and --enable-proxy flags to allow sharing across VMs. 3. Downloading and installing the mod_jk connector to link the Tomcat instances and Apache HTTPD server.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as ODT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
67 views

Tomcat Clustering.: Need: Tools Required

This document discusses setting up a clustered Tomcat environment using multiple Tomcat instances, an Apache HTTPD server, and the mod_jk connector. Key steps include: 1. Installing Tomcat on each VM and configuring private instances and the manager GUI. 2. Installing Apache HTTPD and compiling it with the --enable-rewrite and --enable-proxy flags to allow sharing across VMs. 3. Downloading and installing the mod_jk connector to link the Tomcat instances and Apache HTTPD server.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as ODT, PDF, TXT or read online on Scribd
You are on page 1/ 2

Tomcat Clustering.

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

where - -prefix specifies where to install the httpd server.


- -enable-rewrite, -- enabled-proxy are the parameters for the command.
The requirement is we need to share or access the httpd server accross the VM's. Thus shared is
expected.
5. Run sudo make and sudo make install to install the application.
Install httpd mod_jk connector .
mod_kj link http://tomcat.apache.org/connectors-doc/webserver_howto/apache.html
Download link : http://tomcat.apache.org/download-connectors.cgi
1. Download and extract the mod_jk connector.
2. In the extacted folder, run the below command (./configure --with-apxs=<httpd location>/bin/apxs)
Where httpd location is the location where httpd server is installed.
3. Run $sudo make and $sudo make install to install the connector

You might also like