tomcat-connectors的安装与配置
程序员文章站
2022-04-12 09:41:52
...
前提:RedHat Linux
首先,将tomcat-connectors-1.2.37-src.tar.gz解压
#tar xvzf tomcat-connectors-1.2.37-src.tar.gz -C /usr/java/
之后得到tomcat-connectors-1.2.37-src目录,进入其中native目录,执行
[root@bogon native]# ./configure -with-apxs=/usr/local/apache2/bin/apxs
[root@bogon native]#make
[root@bogon native]#make install
如果出现此异常checking how to run the C++ preprocessor... /lib/cppconfigure: error: C++ preprocessor "/lib/cpp" fails sanity checkSee `config.log' for more details.这是缺少相应的库导致的,所以在保证虚拟机联网的状态下执行以下语句
# yum install glibc-headers
# yum install gcc-c++
之后重新执行上面三条命令
拷贝so到apache的modules下:cp apache2.0/mod_jk.so /home/apache2/modules