咨询热线:4006-75-4006
售前:9:00-23:30 备案:9:00-18:00 技术:7*24h
1.下载对应的apache版本jk,解压后放到apache22/modules目录中
http://www.landui.com/dist/tomcat/tomcat-connectors/jk/binaries/
2.在apache22/conf目录中建立文件:workers.properties输入内容如下:
workers.tomcat_home=E: omcatTomcat 6.0
workers.java_home=E: omcatjavajdk1.6jre
ps=/
worker.list=worker1
worker.worker1.port=8009
worker.worker1.host=localhost
worker.worker1.lbfactor=1
worker.worker1.type=ajp13
3.在apache22/conf/extra/目录中建立文件jk_mod.conf输入一下内容:
LoadModule jk_module E:/httpd/apache22/modules/mod_jk.so
JkWorkersFile E:/httpd/apache22/conf/workers.properties
JkLogFile logs/mod_jk.log
JkLogLevel info
JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
JkMount /servlet/* worker1
JkMount /*.jsp worker1
JkMount /*.do worker1
4.然后在httpd.conf配置文件中引入jk_mod.conf文件
Include E:/httpd/apache22/conf/extra/jk_mod.conf
重启下apache服务