Tuesday, September 02, 2014

JBoss AS/EAP Installation on CentOS/RHEL

JBoss Installation in few simple steps

JBoss comes in two bundles, Enterprise Application Platform (EAP) and Application Server (AS)
       
  •       EAP – Hardened and ready to deploy for enterprise standard
  •        AS – Not hardened, not for enterprises


u  Linux Server Configuration

       yum install java-1.6.0-openjdk
       yum install java-1.6.0-openjdk-devel
       yum install wget unzip
       useradd jboss
       Set java environment variable
export JAVA_HOME=
export PATH=
       To know the exact path type the following command

# alternatives --config java
There is 1 program that provides 'java'.
  Selection    Command
-----------------------------------------------
*+ 1           /usr/lib/jvm/jre-1.6.0-openjdk.x86_64/bin/java
Enter to keep the current selection[+], or type selection number:
       So based on the output the java home is “/usr/lib/jvm/jre-1.6.0-openjdk.x86_64/” and the bin path is “/usr/lib/jvm/jre-1.6.0-openjdk.x86_64/bin/”

       Set hostname for the server (/etc/hosts, /etc/sysconfig/network, # hostname )

u  JBoss EAP Installation

       Download jboss from jboss.org (jboss EAP or AS) to /opt/
       unzip jboss-eap.zip
       chown –R jboss:jboss jboss-eap-directory
       /opt/jboss-eap/bin/add-user.sh

       Minimum and maximum JVM memory can be set in the configuration files (standalone.conf and domain.conf) to the respective startup

u  Configuration

       Jboss Management Portal http://server-ip:9990
       Jboss Application Portal http://server-ip:8080
       To Start Jboss instance
       /opt/jboss-eap/bin/standalone.sh –Djboss.bind.address=0.0.0.0 –Djboss.bind.address.management=0.0.0.0 &
       To Stop the jboss instance
/opt/jboss-eap/bin/jboss-cli.sh --connect command=:shutdown
       RHEL/CentOS init startup script can be found on
/opt/jboss-eap/bin/init.d
       Application deployment folder
/opt/jboss-eap/standalone/deployments/
       Application (war, ear, jar) can be deployed to the deployments folder using jboss-cli and ssh or through the management portal (download Jenkins war from Jenkins-ci.org and deploy)

       Jboss startup output will be logged to boot.log and the system logs will be saved in server.log

Please write to me incase of any assistance.

No comments: