In the previous post we have seen how to install and setup MySQL on the linux machine. This post will guide you to install JBoss web server. JBoss is web server built on Apache and Tomcat 

Install JBoss Web Server

1) Download zipped JBoss 7.1.x in /opt directory

# wget -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
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

# 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 ( address to public IP of machine
<interface name="management">
   <inet-address value="${}"/>
<interface name="public">
   <inet-address value="${jboss.bind.address:}"/>
7) Set-up Jboss to run as a service
# cp /opt/jboss-as-7.1.1.Final/bin/init.d/ /etc/init.d/jboss
# chmod +x /etc/init.d/jboss
# mkdir /etc/jboss-as
8) Create configuration file 
# vim /etc/jboss-as/jboss-as.conf
and add the following configuration parameters
9) Start JBoss service
# service jboss start
10) Done
Back << Install MySQL on Linux                                                     Next >> Install Maven on Linux
Categories: Linux