[b]Cluster Configuration[/b]
[b]Auto Run Configuration[/b]
[u]For Jboss[/u]
[u]For apache[/u]
[b]Deployment[/b]
[i]1. Shutdown the servers[/i]
[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:
jboss start:
[i]5. Check the jkstatus[/i]
http:// 192.168.150.75/jkstatus
#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