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

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s