Jboss default方式下的Cluster配置[三]

[b]Cluster Configuration[/b]



#vim /server/default/deploy/jboss-web.deployer/server.xml

<Engine name="jboss.web" defaultHost="localhost">

The node[i] must match the JK configrutaion.
<Engine name="jboss.web" defaultHost="localhost" jvmRoute="node[i]">

#vim jboss_home/server/all/deploy/jboss-web.deployer/META-INF/jboss-service.xml
update the value of UseJK attribute as true


[b]Auto Run Configuration[/b]

[u]For Jboss[/u]

# cp $JBOSS_HOME/bin/jboss_init_redhat.sh  /etc/init.d/jboss
chmod -f 755 /etc/init.d/jboss

# ln -s /etc/init.d/jboss /etc/rc0.d/K20jboss
# ln -s /etc/init.d/jboss /etc/rc3.d/S80jboss
# ln -s /etc/init.d/jboss /etc/rc5.d/S80jboss
# ln -s /etc/init.d/jboss /etc/rc6.d/K20jboss


[u]For apache[/u]

ln –s /opt/apache2/bin/apachectl /etc/init.d/apache

chmod 755 /etc/init.d/apache
ln –s /etc/init.d/apache /etc/rc3.d/S80apache
ln –s /etc/init.d/apache /etc/rc3.d/K20apache
ln –s /etc/init.d/apache /etc/rc4.d/S80apache
ln –s /etc/init.d/apache /etc/rc4.d/K20apache
ln –s /etc/init.d/apache /etc/rc5.d/S80apache
ln –s /etc/init.d/apache /etc/rc5.d/K20apache


[b]Deployment[/b]

[i]1. Shutdown the servers[/i]

./shutdown.sh -S --server=192.168.150.75 --user=admin --password=***
./shutdown.sh -S --server=192.168.150.76 --user=admin --password=***


[i]2. Copy folders[/i]
Copy below folders of the project to the /opt/apache2/htdocs/application/ folder.

The folders:
images
style
css
js
support

[i]3. Copy war file[/i]
Copy the application.war to the folder [Two nodes]:

/opt/jboss-4.2.2.GA/server/default/deploy

[i]4. Start the servers [Two nodes][/i]

Start apache:

service apache start


jboss start:

#./jboss_init_redhat.sh start
or
#service jboss start



[i]5. Check the jkstatus[/i]

http:// 192.168.150.75/jkstatus
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值