编译mod_jk.so

时间:2023-03-09 05:00:37
编译mod_jk.so

编译mod_jk.so前,需要先到http://tomcat.apache.org/download-connectors.cgi去下载tomcat-connectors-1.2.41-src.tar.gz,

编译mod_jk.so前,本机需要先安装apxs,因为它依赖于apxs,我使用命令是yum install httpd-devel,等/usr/sbin下有apxs就算安装好了。

其次,将http://apache.fayea.com/tomcat/tomcat-connectors/jk/tomcat-connectors-1.2.41-src.tar.gz下载解压,到native目录执行

然后执行下面语句设置apxs位置

#./configure --with-apxs=/usr/sbin/apxs

最后编译
#make

之后到apache-2.0目录里找编译成的mod_jk.so就好了。

2016年3月2日8:36:20