INSTALL JBOSS
1) Download zipped JBoss 7.1.x in /opt directory using:
# wget http://download.jboss.org/jbossas/7.1/jboss-as-7.1.1.Final/jboss-as-7.1.1.Final.tar.gz -P /var/tmp
2) Extract using tar command
# tar -zxf /var/tmp/jboss-as-7.1.1.Final.tar.gz -C /opt
3) Remove the zipped file using rm command :
# rm -f /var/tmp/jboss-as-7.1.1.Final.tar.gz
3) Remove the zipped file using rm command :
# rm -f /var/tmp/jboss-as-7.1.1.Final.tar.gz
4) Running JBOSS as root is a security risk. Run JBoss using a dedicated system user which will run the JBoss server using the sudo powers.
# useradd -r jboss -d /opt/jboss-as-7.1.1.Final
# useradd -r jboss -d /opt/jboss-as-7.1.1.Final
# chown jboss: -R /opt/jboss-as-7.1.1.Final
5) Enable access to JBoss interface by editing standalone.xml:
# vim /opt/jboss-as-7.1.1.Final/standalone/configuration/standalone.xml
6) Change local IP (127.0.0.1) address to public IP of machine
5) Enable access to JBoss interface by editing standalone.xml:
# vim /opt/jboss-as-7.1.1.Final/standalone/configuration/standalone.xml
6) Change local IP (127.0.0.1) address to public IP of machine
<interface name="management">
<inet-address value="${jboss.bind.address.management:127.0.0.1}"/>
</interface>
<interface name="public">
<inet-address value="${jboss.bind.address:127.0.0.1}"/>
</interface>
7) Set-up Jboss to run as a service
# cp /opt/jboss-as-7.1.1.Final/bin/init.d/jboss-as-standalone.sh /etc/init.d/jboss
# cp /opt/jboss-as-7.1.1.Final/bin/init.d/jboss-as-standalone.sh /etc/init.d/jboss
# chmod +x /etc/init.d/jboss
# mkdir /etc/jboss-as
8) Create configuration file and add the following configuration parameters
# vim /etc/jboss-as/jboss-as.conf
JBOSS_HOME=/opt/jboss-as-7.1.1.Final
JBOSS_CONSOLE_LOG=/var/log/jboss-console.log
JBOSS_USER=jboss
9) Start Jboss service
# service jboss start
10) Done
No comments:
Post a Comment