Tomcat 5.0.19 Documentation

REV: 2003/11/25

Tomcat 5.0.14 w/

Java Development Kit (JDK) 1.3.1.08 allready installed

Mod_jk already installed

 

Download: http://jakarta.apache.org/site/binindex.cgi   5.0.14.tar.gz

gunzip < jakarta-tomcat-5.0.14.tar.gz | tar xvf -

AS ROOT:  chown -R tomcat5:tomcat5 tomcat5

cp -Rf jakarta-tomcat-5.0.14 /usr/local/tomcat5

cp -Rf jakarta-tomcat-5.0.14 /usr/local/ jakarta-tomcat-5.0.14

TOMCAT5 CHANGES

cd /usr/local/tomcat5/conf

add user/roles to /usr/local/ jakarta-tomcat-5.0.14/conf/ tomcat-users.xml

vi server.xml

                CHANGE:

 

8005 to 15005

<Server port="15005" shutdown="SHUTDOWN" debug="0">

 

             Comment Out:  

              <!--<Connector port="8080"

               maxThreads="150" minSpareThreads="25" maxSpareThreads="75"

               enableLookups="false" redirectPort="8443" acceptCount="100"

               debug="0" connectionTimeout="20000"

               disableUploadTimeout="true" />    -->

 

              8009 to 15009

              <!-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 -->

              <Connector port="15009"

               enableLookups="false" redirectPort="8443" debug="0"

               protocol="AJP/1.3" />

 

JAKARTA-TOMCAT-5.0.14 CHANGES

cd /usr/local/jakarta-tomcat-5.0.14/conf

add user/roles to /usr/local/ jakarta-tomcat-5.0.14/conf/ tomcat-users.xml

               

Replace: /usr/local/apache/conf/workers.properties

#

# workers.properties

#

 

# In Unix, we use forward slashes:

ps=/

 

# list the workers by name

 

worker.list=tomcat1, tomcat2, tomcat5, loadbalancer

 

# ------------------------

# First tomcat server

# ------------------------

worker.tomcat1.port=11009

worker.tomcat1.host=localhost

worker.tomcat1.type=ajp13

 

# Specify the size of the open connection cache.

#worker.tomcat1.cachesize

 

#

# Specifies the load balance factor when used with

# a load balancing worker.

# Note:

#  ----> lbfactor must be > 0

#  ----> Low lbfactor means less work done by the worker.

worker.tomcat1.lbfactor=100

 

 

# ------------------------

# Second tomcat server

# ------------------------

worker.tomcat2.port=12009

worker.tomcat2.host=localhost

worker.tomcat2.type=ajp13

 

# Specify the size of the open connection cache.

#worker.tomcat2.cachesize

 

#

# Specifies the load balance factor when used with

# a load balancing worker.

# Note:

#  ----> lbfactor must be > 0

#  ----> Low lbfactor means less work done by the worker.

worker.tomcat2.lbfactor=100

 

# ------------------------

# Fifth tomcat server

# ------------------------

worker.tomcat5.port=15009

worker.tomcat5.host=localhost

worker.tomcat5.type=ajp13

 

# Specify the size of the open connection cache.

#worker.tomcat3.cachesize

 

#

# Specifies the load balance factor when used with

# a load balancing worker.

# Note:

#  ----> lbfactor must be > 0

#  ----> Low lbfactor means less work done by the worker.

worker.tomcat5.lbfactor=100

 

 

 

# ------------------------

# Load Balancer worker

# ------------------------

 

#

# The loadbalancer (type lb) worker performs weighted round-robin

# load balancing with sticky sessions.

# Note:

#  ----> If a worker dies, the load balancer will check its state

#        once in a while. Until then all work is redirected to peer

#        worker.

worker.loadbalancer.type=lb

worker.loadbalancer.balanced_workers=tomcat1, tomcat2, tomcat5

 

#

# END workers.properties

#

 

 

 

 

 

               


partnerjuarez.com