Installing JBoss EAP

  1. Log in to the Red Hat Customer Portal and download Red Hat JBoss Enterprise Application Platform 7.4.0 Installer.

  2. Open a terminal and navigate to the directory containing the downloaded JBoss EAP installer.

  3. Run the text-based installer using the following command:

›_ Console

# java -jar jboss-eap-7.4.0-installer.jar 
image-3285745861-1.jpg

JBoss installation

image-3285745861-2.jpg

JBoss installation

  1. Change the owner & group of the JBoss EAP folder.

›_ Console

# chown -R jboss:jboss /opt/EAP-7.4.0/ 
  1. Edit JBoss EAP configuration file /opt/EAP-7.4.0/bin/init.d/jboss-eap.conf with below entries.

jboss-eap.conf

JAVA_HOME=/opt/jdk1.8.0_202 

JBOSS_HOME=/opt/EAP-7.4.0 

JBOSS_USER=jboss 

You need to modify the above values according to your environment. After adding the above lines, save the file.

  1. Now edit the /etc/profile file to add the below lines.

profile

export JAVA_HOME=/opt/jdk1.8.0_202 export JBOSS_HOME=/opt/EAP-7.4.0 

export PATH=$PATH:$JAVA_HOME/bin:$JBOSS_HOME/bin 
  1. Run the command below to reload the profile.

›_ Console

# source /etc/profile 
  1. Verify java home and jboss home path.

›_ Console

# echo $JAVA_HOME 

# echo $JBOSS_HOME 
image-3285745861-5.jpg

Verify Java and JBoss home PATH

  1. Copy the below two files.

›_ Console

# cp /opt/EAP-7.4.0/bin/init.d/jboss-eap.conf /etc/default 

# cp /opt/EAP-7.4.0/bin/init.d/jboss-eap-rhel.sh /etc/init.d/ 
image-3285745861-6.jpg

Copy JBoss service files

  1. Run below two commands to reset the security context.

›_ Console

# restorecon /etc/init.d/jboss-eap-rhel.sh 

# chkconfig --add jboss-eap-rhel.sh 
  1. Start JBoss EAP service.

›_ Console

# systemctl enable jboss-eap-rhel 

# systemctl start jboss-eap-rhel 
  1. Check the status of JBoss EAP service.

›_ Console

# systemctl status jboss-eap-rhel 
image-3285745861-7.jpg

JBoss service status