1.apache单独编译mod_jk模块(mod_jk模块在apache里面没有是tomcat提供的)
wget http://archive.apache.org/dist/tomcat/tomcat-connectors/jk/tomcat-connectors-1.2.32-src.tar.gz
2.下载完成之后要解压apache-tomcat-7.0.55.tar.gz(linux文件后缀带gz的都要gzip解压下)
gzip -d tomcat-connectors-1.2.32-src.tar.gz
3.gzip -d之后文件名会变成apache-tomcat-7.0.55.tar.gz没有了.gz了,再用tar解压
tar xvf tomcat-connectors-1.2.32-src.tar
4.cd进入到tomcat-connectors-1.2.32-src/native/目录下
cd tomcat-connectors-1.2.32-src/native/
5.在native目录下执行配置命(/home/web/apache/bin/apxs这个是你安装apache之后有工具)
./configure --with-apxs=/home/web/apache/bin/apxs
6.配置好就是编译和安装啦
make && make install
7.执行完上面的步骤就完成了,你的apache的modules目录下会多一个mod_jk.so
ll /home/web/apache/modules/mod_jk.so
apache和tomcat整合文档