我的环境是ubuntu12.04,tomcat7.0.32,apache2.2.22。
编译出来的mod_jk.so可以直接在本机/服务器环境上使用,省去在网上找so的麻烦。
对于apache与tomcat的整合,请参考之前的文章:
Apache HttpServer的安装并与Tomcat整合Linux 版
Apache HttpServer与Tomcat7集群Linux版
1.下载tomcat--connectors
下载地址:http://tomcat.apache.org/download-connectors.cgi
我下载的是1.2.37
适用apache1或2 系列 结合tomcat6或7。
2.编译安装tomcat-connectors
1).解压tomcat-connectors-1.2.37-src.tar.gz
#tar -zxvf tomcat-connectors-1.2.37-src.tar.gz2).进入tomcat-connectors-1.2.37-src/native目录
#cd tomcat-connectors-1.2.37-src/native3).配置编译条件
#./configure --with-apxs=/usr/local/apache2.2/bin/apxs
/usr/local/apache2 是你的apache安装目录
4).编译安装
#make #make install
........
See any operating system documentation about shared libraries for more information, such as the ld(1) and ld.so(8) manual pages. ---------------------------------------------------------------------- chmod 755 /usr/local/apache2.2/modules/mod_jk.so Please be sure to arrange /usr/local/apache2.2/conf/httpd.conf...
#ll /usr/local/apache2.2/modules/mod_jk.so
apache 配置:http://tomcat.apache.org/connectors-doc/reference/apache.html
workers.properties 配置:http://tomcat.apache.org/connectors-doc/reference/workers.html