Journal zxm's Journal: JOnAS Cluster 1
After Googling JOnAS Cluster and Tomcat Cluster, I found several good articles for me:
- Clustering With JOnAS
- Tomcat 4 Clustering - HOWTO
- Tomcat 5 JSP/Servlet Container Clustering/Session Replication HOW-TO
- Apache 1.3.23 + Tomcat 4.0.2 + Load Balancing
But when I gonna download mod_jk from jakarta.apache.org, found that there was no binary bundle for Linux, after reading a hint of the tomcat user mail list, I knew I should compile it with the source.
Update:
The README or build file in the jakarta-tomcat-connector-2.0-src has not informed detailed how to build the source file.
I refered to an article on how to compile mod_jk2 from source, It's a good doc but missing one thing:
After run Command:
# sh
./buildconf.sh
#./configure --with-apxs2=/usr/sbin/apxs2 \
> --with-tomcat41=/opt/tomcat \
> --with-java-home=/opt/IBMJava2-131 \
> --with-jni
# make
Then, there will be 2 files in the directory "../build/jk2/apache2":
- mod_jk2.so
- jkjni.so
Copy them to Apache httpd modules directory:
#cp mod_jk2.so jkjni.so
/opt/httpd/modules/
Update:
It seems not easy to setup Apache + Tomcat
- I configured localhost, 127.0.0.1 in both ${serverRoot}/conf/workers2.properties and ${catalina.home}/conf/server.xml file, though I cannot access any file using URL: http://localhost/... or http://127.0.0.1/...,but OK if using http://ricky/...
Here are some very useful links:
- The Apache Tomcat Doc about mod_jk
- Using mod_jk2
- The Tomcat User Mail List
- An Article On TheServerSite
- A Good presentaion containing much information is on oreillynet.com.
Update:
There are also some good links:
What Is Apache Apxs? (Score:1)