Tuesday, May 13, 2014

Installing JBoss EAP 6.2 on RedHat Linux

In this tutorial, I will be installing JBoss EAP 6.2 that will be using Oracle JDK 1.6 Update 45 on Red Hat Linux.

1.   Download Oracle jdk-6u45-linux-x64.bin
2.   Download JBoss EAP 6.2 (jboss-eap-6.2.0.zip) from JBoss download page.
3.   Create jboss user which will install and manage JBoss using:

     # adduser jboss 
     # su - jboss

4.   Copy the downloaded JDK and JBoss to the jboss home /home/jboss
5.   Install the JDK this extract the JBoss using:

      [jboss@lab04 ~]$ ./jdk-6u45-linux-x64.bin
      [jboss@lab04 ~]$ unzip jboss-eap-6.2.0.zip

6.   To setup JBoss as OS service and make it start automatically, use:

      [root@lab04 ~]# mkdir /etc/jboss-as
      [root@lab04 ~]# cp /home/jboss/jboss-eap-6.2/bin/init.d/jboss-as.conf /etc/jboss-as/.
      [root@lab04 ~]# cp /home/jboss/jboss-eap-6.2/bin/init.d/jboss-as-domain.sh /etc/init.d/.
      [root@lab04 ~]# cd /etc/init.d/
      [root@lab04 init.d]# chkconfig --add jboss-as-domain.sh
      [root@lab04 init.d]# chkconfig jboss-as-domain.sh on

7.   Edit the following parameters in /etc/jboss-as/jboss-as.conf

      JBOSS_USER=jboss
      JBOSS_HOME=/home/jboss/jboss-eap-6.2
      JAVA_HOME=/home/jboss/jdk1.6.0_45 

8. Now, you can start the domain using:

      [root@lab04 init.d]# service jboss-as-domain.sh start

1 comment: