1、安装jdk,tomcat和apache

2、下载mod_jk.dll,改后缀so 将mod_jk.so放入C:Program FilesApache Software FoundationApache2.2modules

3、 在C:\Program Files\Apache Software Foundation\Apache2.2\conf下新增workers.properties文件,内容如下:

1workers.tomcat_home=C:tomcat6
2workers.java_home=C:Program FilesJavajdk1.6.0_10
3ps=
4worker.list=ajp13
5worker.ajp13.port=8009
6worker.ajp13.host=localhost
7worker.ajp13.type=ajp13
8worker.ajp13.lbfactor=1

4、在httpd.conf最后添加如下语句:

 1LoadModule jk_module modules/mod_jk.so
 2JkWorkersFile "conf/workers.properties"
 3JkLogFile "logs/mod_jk2.log"
 4JkLogLevel info
 5ServerAdmin [email protected]
 6DocumentRoot "D:htdocswpcms"
 7ServerName 361way.com
 8DirectoryIndex index.html
 9ErrorLog logs/wpcms-error.log
10CustomLog logs/wpcms-access.log common
11#JkMount /servlet/* ajp13
12JkMount /*.jsp ajp13
13JkMount /*.do ajp13
14JkMount /*.action ajp13
15JkMount /*.html ajp13
16JkMount /* ajp13
17<directory>
18Options Indexes
19AllowOverride all
20Order allow,deny
21Allow from all
22</directory>