1.按apachefriend安装xampp
2.安装后无apache文件夹,关于apache的配置都在etc文件夹下的httd.conf及extra下
3.去上面的地址下载mod_jk.so,注意是
4.在httd.conf下配置如下:
#load mod_jk
LoadModule jk_module modules/mod_jk.so
#configure mod_jk
JkWorkersFile conf/workers.properties
JkLogFile logs/mod_jk.log
JkLogLevel info
JkMount /*.jsp loadbalancer
JkMount /servlet/* loadbalancer
JkMount /application/* loadbalancer
5.在lampp文件下创建conf文件夹,并创建workers.properties文件workers.properties里内容如下:
ps=/
worker.list=tomcat1, tomcat2, loadbalancer
worker.tomcat1.port=8009
worker.tomcat1.host=localhost
worker.tomcat1.type=ajp13
worker.tomcat1.lbfactor=100
worker.loadbalancer.type=lb
worker.loadbalancer.balanced_workers=tomcat1
6.修改tomcat server.xml文件
在
<Engine name="Catalina" defaultHost="localhost" jvmRoute="tomcat1">
7.重启服务apache tomcat
posted on 2012-04-28 15:19
长春语林科技 阅读(886)
评论(0) 编辑 收藏 所属分类:
linux