Window下jboss集群环境配置2

2011-07-15  王俊虎 

(接上:Window下jboss集群环境配置1

3.1.1    配置apache的安装

ü   修改%apache%\conf\httpd.conf
在文件末尾添加:    Include conf/mod_jk.conf

ü   打开文件%APACHE_HOME%/conf/workers.properties

# Define list of workers that will be used

# for mapping requests

worker.list=loadbalancer,status,node1,node2

 

# Define Node1

# modify the host as your host IP or DNS name.

worker.node1.port=8009

worker.node1.host=192.168.20.2

worker.node1.type=ajp13

worker.node1.lbfactor=1

worker.node1.redirect=node2

#worker.node1.cachesize=10

 

# Define Node2

# modify the host as your host IP or DNS name

worker.node2.port=8009

worker.node2.host=192.168.20.3

worker.node2.type=ajp13

worker.node2.lbfactor=1

worker.node2.redirect=node3

#worker.node2.cachesize=10

 

# Load-balancing behaviour

worker.loadbalancer.type=lb

worker.loadbalancer.balance_workers=node1,node2

worker.loadbalancer.sticky_session=1

#worker.list=loadbalancer

# Status worker for managing load balancer

worker.status.type=statusalancer

worker.status.type=status

ü   测试apache

 %JBOSS_HOME%\bin目录下分别执行startup.bat, 测试每个jboss的启动是否正常

http:// 192.168.20.1/

394°/3948 人阅读/0 条评论 发表评论

登录 后发表评论