#JBoss Application Server 7 is an open source, fast, powerful, implementation of the Java Enterprise Editions. This document post will proivde to quick install on your Linux system. We can install in few steps,
Jboss 7.1.1 will work on Java 6 or Java 7.

Install JAVA 6 or 7 version:

we will need to install Java 6 or 7, Install java dependencies package using yum command (glibc,libgcc)

yum install glibc.i686

yum instalk libgcc_*

Download the java rpm package from the URL or just refer the link to install JAVA  7 & 8 

After downloaded Install jdk-7u60-linux-x64.rpm package, set the path,
 
# rpm -ivh /root/download/jdk-7u60-linux-x64.rpm

# export JAVA_HOME=/usr/java/jdk1.7.0_60   

# export JAVA_HOME  

#PATH=$JAVA_HOME/bin:$PATH  

#export PATH  

set ‘JAVA_HOME’ path and add the lines below to your ‘.bash_profile’ file
 
# echo 'JAVA_HOME=/usr/java/jdk1.7.0_60' >> ~/.bash_profile

# echo 'export JAVA_HOME' >> ~/.bash_profile  

# echo 'PATH=$JAVA_HOME/bin:$PATH' >> ~/.bash_profile

# echo 'export PATH' >> ~/.bash_profile

Now, ensure the path has been set correctly with below command,
 
# echo JAVA_HOME

Will shows JAVA_HOME path
/usr/java/jdk1.7.0_60


To check java Version:
 
# java -version

java version "1.7.0_60"
Java(TM) SE Runtime Environment (build 1.7.0_60)
Java HotSpot(TM) 64-Bit Server VM (build 25.25-b02, mixed mode)

Once you have completed the java installation process will start install Jboss 7.1

Install Jboss 7.1.1 Application :

Assume that, the Jboss installation path will be  /usr/share/ change the directory, download jboss-as-7.1.1.Final.zip
 
# cd /usr/share

# wget http://download.jboss.org/jbossas/7.1/jboss-as-7.1.1.Final/jboss-as-7.1.1.Final.zip  
 

Extract that files and rename that file,
 
# unzip -q jboss-as-7.1.1.Final.zip  

# mv jboss-as-7.1.1.Final /usr/share/jboss-as  

User Add :

Create a user jboss
 
# groupadd jboss  

# useradd -s /bin/bash -g jboss jboss  

Change the directory to our JBOSS HOME path ,
 
# cd /usr/share/jboss-as

# pwd
 /usr/share/jboss-as


 Our JBOSS_HOME is '/usr/share/jboss-as'

Change to the /usr/share directory:
 
#  cd /usr/share  

# chown -Rf jboss.jboss /usr/share/jboss-as/  

 Add the following to the .bash_profile of the user jboss,

#set ‘JAVA_HOME’ path and add the lines below to your ‘.bash_profile’ file
    echo 'JAVA_HOME=/usr/java/jdk1.7.0_60' >> ~/.bash_profile
    echo 'export JAVA_HOME' >> ~/.bash_profile  
    echo 'PATH=$JAVA_HOME/bin:$PATH' >> ~/.bash_profile
    echo 'export PATH' >> ~/.bash_profile
# su - jboss  

Create a start/stop/restart script for JBoss.
 

# cd /usr/share/jboss-as/bin/init.d  

# cp jboss-as-standalone.sh /etc/init.d/jboss     

# cd /etc/init.d/
 

Give executable permission,
 
# chmod 755 jboss  

# chkconfig --add jboss  

# chkconfig --level 234 jboss on  

Now start the jboss,
 
# /etc/init.d/jboss start
Starting jboss-as:                                         [  OK  ]
# netstat -anp | grep 8080
tcp        0      0 127.0.0.1:8080        0.0.0.0:*                   LISTEN      12710/java

# /etc/init.d/jboss stop
# *** JBossAS process (12710) received KILL signal ***


Change the IP Address,

Open the configuration file standalone.xml under /usr/share/jboss-as/standalone/configuration/. and update IP Address

 <interfaces>
        <interface name="management">
            <inet-address value="${jboss.bind.address.management:127.0.0.1}"/>
        </interface>
        <interface name="public">
            <inet-address value="${jboss.bind.address:192.168.11.1}"/>
        </interface>
        <!-- TODO - only show this if the jacorb subsystem is added  -->
        <interface name="unsecure">
            <!--
              ~  Used for IIOP sockets in the standard configuration.
              ~                  To secure JacORB you need to setup SSL 
              -->
            <inet-address value="${jboss.bind.address.unsecure:127.0.0.1}"/>
        </interface>
    </interfaces>