User Tools

Site Tools


apache2mod_jk2tomcat

Apache2 mod_jk2tomcat

<toc></toc>

mkdir -p /usr/local/java

ln -s j2sdk1.4.1_01 j2se

export JAVA_HOME=/usr/local/java/j2se
export PATH=$PATH:$JAVA_HOME/bin
export CLASSPATH=$JAVA_HOME/lib

Download jakarta-tomcat unzip into /usr/local/java, and create symlink tomcat to jakarta-tomcat-4.1.xx

/usr/local/java/tomcat/bin/startup.sh

lynx -dump -head http://localhost:8080

http://apache.sunsite.ualberta.ca/jakarta/tomcat-connectors/jk2/jakarta-tomcat-connectors-jk2-src-current.tar.gz

From jakarta-tomcat-connectors-4.x.xx-src/jk/native2 run:

sh ./buildconf.sh

./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-tomcat41=/usr/local/java/tomcat --with-java-home=/usr/local/java/j2se &amp;&amp; make

cp ../build/jk2/apache2/mod_jk2.so /usr/local/apache2/modules/

<strong>httpd.conf</strong>:

LoadModule jk2_module modules/mod_jk2.so
# JkSet config.file /etc/apache2/workers2.properties

You will also need to configure <tt>workers2.properties</tt>

apache2mod_jk2tomcat.txt · Last modified: 2020/02/13 22:55 (external edit)

free spam filter