Home > Linux application Installations > Installing JBoss AS 7.0 on Centos 5

Installing JBoss AS 7.0 on Centos 5

 

 

TASK: Install JBoss AS 7.0 on Centos 5

 

Dependencies: JBoss AS 7.0 requires Oracle java >= 1.6.0 and Maven >= 3.0.0

 

Steps:

 

1) Download Oracle Java and Maven for your system architecture,

 

cd /opt
lynx "http://download.oracle.com/otn-pub/java/jdk/7u6-b24/jdk-7u6-linux-x64.tar.gz?AuthParam=1345589629_a56cd35fc7c36d655693a50d06acb57f"
tar xzf jdk-7u6-linux-x64.tar.gz
mv jdk1.7.0_06 /usr/lib/java-1.7.0_06
wget http://apache.techartifact.com/mirror/maven/binaries/apache-maven-3.0.4-bin.tar.gz
tar xzf apache-maven-3.0.4-bin.tar.gz
cd apache-maven-3.0.4

 

 

2) Add the required environment variables in your /etc/profile system file at the bottom,

 

M2_HOME=/opt/apache-maven-3.0.4
JAVA_HOME=/usr/lib/java-1.7.0_06
PATH=${JAVA_HOME}/bin:${M2_HOME}/bin:${PATH}
export M2_HOME JAVA_HOME PATH

 

After adding the above run the command,

source /etc/profile

 

3) Download JBoss AS 7.0 and change the local host ip address in the configuration to your public ip and start JBoss,

 

lynx "http://download.jboss.org/jbossas/7.0/jboss-as-7.0.2.Final/jboss-as-web-7.0.2.Final.tar.gz"
tar xzf jboss-as-web-7.0.2.Final.tar.gz
replace "127.0.0.1" "68.44.59.12" -- jboss-as-web-7.0.2.Final/standalone/configuration/standalone.xml
./jboss-as-web-7.0.2.Final/bin/standalone.sh

 

After this you can access JBoss via url http://<Your server IP>:8080/”

 

 

Ref: https://docs.jboss.org/author/display/AS7/Installing+and+starting+JBoss+AS+on+Linux,+Unix+or+Mac+OS+X

 

 

Advertisements
  1. No comments yet.
  1. No trackbacks yet.

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 )

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s

%d bloggers like this: