Jboss AS installation and startup mode
  1. User creation
 sudo groupadd webapps

 sudo useradd jbadm -g webapps -d /opt/redhat/jboss

 sudo chown jbadm:webapps /opt/redhat/jboss

Extraction and linking app directory:

tar xf jboss-as-7.1.1.Final.tar.gz

ln -sf jboss-as-7.1.1.Final jboss