Tag Archives: jboss redhat

Jboss 7 AS on Redhat 6

Image

vi /etc/hosts and add the hostname

yum install java-1.7.0-openjdk.x86_64

tar xzvf jboss-as-7.0.2.Final.tar.gz

mv jboss-as-7.0.2.Final jboss-as

adduser jboss

chown jboss:jboss /opt/jboss-as

add the following lines to jboss .bash_profile :

JAVA_HOME=/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.9.x86_64

JBOSS_HOME=/opt/jboss-as

export JAVA_HOME

export JBOSS_HOME

cd /opt/jboss-as/bin

You must type “unset MODULEPATH” beacuse it’s in conflict with default MODULEPATH environment.

./standalone.sh and jboss should start correctly