1. Download jboss
* download using
wget http://download.jboss.org/jbossas/7.1/jboss-as-7.1.1.Final/jboss-as- 7.1.1.Final.tar.gz
OR
* From the site
http://www.jboss.org/products
I have downloaded from site (Red Hat® JBoss® Enterprise Application Platform)
2. Make sure you have java installed in your system using (java -version) command
3. Extract jboss to opt directory
sudo unzip jboss.zip -d /opt
4. cd to the jboss bin directory
cd /opt/jboss/bin
5. add a user for the jboss server
./add-user.sh
* select management user
*(no need to put any relm) use default
*give username
*give password
6. start jboss server
./standalone.sh
browse using localhost:9990
(user the user name and pass to enter the management console)
Additional monitoring
1. netstat -an | grep 8080 (confirm jboss is listening to port 8080)
2. netstat -an | grep 9990
3. ps -ef (to see if jboss process is running or not)
4. ./jboss-cli.sh --connect command=:shutdown (shutdown jboss server)