<body>

kenshou

天空没有飞过的痕迹,但我已经努力飞过……

« Home | Next » | Next » | Next » | Next » | Next » | Next » | Next » | Next » | Next » | Next »

apache2和tomcat5.5的整合(转载)



tar xvfz jakarta-tomcat-connectors-1.2.15-src.tar.gz
cd jakarta-tomcat-connectors-1.2.15-src/jk/native/
./buildconf.sh
./configure --with-apxs=/opt/bokee/httpd/bin/apxs --with-java-
make
make install

在/opt/bopkee/httpd/conf/http.conf文件中加入以下代码:
LoadModule jk_module modules/mod_jk.so
JkWorkersFile "/opt/bokee/httpd/conf/workers.properties"
JkLogFile "/opt/bokee/httpd/logs/mod_jk2.log"
JkLogLevel error
JkMount /photoadmin/* worker1
JkMount /photoblog/* worker1

新建此文件/opt/bokee/httpd/conf/workers.properties,内容如下
ps=/
#指定文件路径分割符
worker.list=worker1
worker.worker1.port=8009
#工作端口,若没占用则不用修改
worker.worker1.host=localhost
#Tomcat服务器的地址
worker.worker1.type=ajp13
#类型
worker.worker1.lbfactor=1

apache的启动:
/opt/bokee/httpd/bin/apachectl start 启动
/opt/bokee/httpd/bin/apachectl restart 重启
/opt/bokee/httpd/bin/apachectl stop 停止

标签: ,

leave a response