前些天整了这个互联问题,总算解决了.今晚加班就把相关文档补上来吧.
root@mail ~]# ls *.rpm
apr-devel-0.9.4-24.5.i386.rpm apr-util-devel-0.9.4-21.i386.rpm httpd-devel-2.0.52-3.i386.rpm
[root@mail ~]# httpd -v
Server version: Apache/2.0.52
Server built: May 24 2006 11:45:10
需要安装以上rpm包.tomcat5.028.用jakarta-tomcat-connectors-1.2.15-src.tar.gz进行互联.
tomcat解压到/usr/local/tomcat.
tar zxvf jakarta-tomcat-connectors-1.2.15-src.tar.gz
cd /root/jakarta-tomcat-connectors-1.2.15-src/jk/native
./configure --with-apxs=/usr/sbin/apxs
make
cp ./apache-2.0/mod_jk.so /usr/lib/httpd/
cp ./apache-2.0/mod_jk.so /etc/httpd/modules/
cd /etc/httpd/conf
vi http.conf
Include conf/mod_jk.conf
LoadModule jk_module modules/mod_jk.so
其他的参考我前面的一篇文章
# cat mod_jk.conf
JkWorkersFile /etc/httpd/conf/workers.properties
JkLogFile /var/log/httpd/mod_jk.log
JkLogLevel info
JkLogStampFormat "[%a %b %d %H:%M:%S %Y]"
JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
JkRequestLogFormat "%w %V %T"
JkMount /examples/* worker1
JkMount /examples/*.jsp worker1
JkMount /*.jsp worker1
JkMount /*/servlet/ worker1
JkMount /*.do worker1
# cat workers.properties
workers.tomcat_home=/usr/local/tomcat
workers.java_home=/usr/local/j2sdk
worker.list=worker1
worker.worker1.port=8009
worker.worker1.host=localhost
worker.worker1.type=ajp13
分别用httpd -t和httpd -S测试一下配置文件。
没有问题就基本OK了。
阅读(1681) | 评论(0) | 转发(0) |