2、笔记 apche+tomcat+mod_jk集群配置
0、下载对应文件,注意mod_jk与apache版本的对应,然后安装 httpd-2.2.20 apache-tomcat-6.0.33 tomcat-connectors-1.2.32 1、将mod_jk.so放入apache/modules 1)、过程略 2、在apache/conf下新建mod_jk.conf文件,文件内容如下: JkWorkersFile conf/workers.properties JkLogFile logs/mod_jk.log JkLogLevel warn JkMount /* controller 3、在apache/conf下新建workers.properties文件,文件内容如下: worker.list = controller,tomcat1,tomcat2 worker.tomcat1.port=8001 worker.tomcat1.host=localhost worker.tomcat1.type=ajp13 worker.tomcat1.lbfactor = 1 worker.tomcat2.port=8002 worker.tomcat2.host=localhost worker.tomcat2.type=ajp13 worker.tomcat2.lbfactor = 1 worker.controller.type