In most cases you will want to run JBoss as a non-privileged user. For this example we will set up a jboss user (adding the user is an excersize for the user). This example covers jboss-6.1.0-Final.
- Add $JAVA_HOME and $JBOSS_HOME environmental vars to .bash_profile for your jboss user. $JAVA_HOME points to your install of the JDK and $JBOSS_HOME points to your jboss installation directory.
JAVA_HOME=/usr/lib/jvm/java-1.6.0-openjdk.x86_64
export JAVA_HOME
PATH=$JAVA_HOME/bin:$PATH
export PATH
JBOSS_HOME=/opt/jboss/
export JBOSS_HOME
- Once you have done the basic JBoss