wget http://archive.apache.org/dist/tomcat/tomcat-connectors/jk/source/tomcat-connectors-1.2.28-src.tar.gz #作用是无缝拼接apache与tomcat
#tar zxvf tomcat-connectors-1.2.28-src.tar.gz
# cat BUILD.txt
# pwd
/tmp/tomcat-connectors-1.2.28-src/native
# ./configure –with-apxs=/usr/sbin/apxs
# make && make install
# cd apache-2.0/
# apxs -i -n mod_jk mod_jk.so
# cd ../../conf/
# cp workers.properties.minimal /etc/httpd/conf/workers.properties #配置如何工作
# vim /etc/httpd/conf.d/jk.conf
# Load mod_jk module
LoadModule jk_module modules/mod_jk.so
# Where to find workers.properties
JkWorkersFile conf/workers.properties
# Where to put jk shared memory
JkShmFile logs/httpd/mod_jk.shm
# Where to put jk logs
JkLogFile logs/mod_jk.log
# Set the jk log level [debug/error/info]
JkLogLevel info
# Select the log format
JkLogStampFormat “[%a %b %d %H:%M:%S %Y] ”
# JkOptions indicate to send SSL KEY> JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
# JkRequestLogFormat set the request format
JkRequestLogFormat “%w %V %T %R”
# All requests go to Tomcat by default
JkMount /*.jsp wlb
JkMount /manager/* wlb