- Lab
- A Cloud Guru
Installing JBoss EAP on RHEL 8
Red Hat's JBoss Enterprise Application Platform (EAP) is a Java EE-based application platform built around deploying and managing Java applications and services. JBoss EAP is cross-platform and works on anything that supports Java. This hands-on lab focuses on a Red Hat 8 deployment wherein we configure JBoss EAP to run as a service on the machine.
Path Info
Table of Contents
-
Challenge
Install OpenJDK
Install OpenJDK.
-
Challenge
Install JBoss EAP
-
Run the installer located in the
cloud_user
's home directory. -
In the installer, set the following values:
- Select your language below: Enter
0
for English. - End user license agreement: Enter
1
to continue. - Select the installation path: Use
/opt/jboss-eap
to match default configuration and enter1
to continue. - Select the packs you want to install: Enter
0
to confirm and1
to continue. - Admin username: Enter
admin
. - Admin password: Enter your password twice and
1
to continue. - Configure Runtime Environment: Enter
0
to perform the default configuration and1
to continue. - Would you like to generate an automatic installation script and properties file?: Enter
n
.
- Select your language below: Enter
-
-
Challenge
Configure JBoss EAP as a Service
-
Create the service user.
-
Open the configuration file.
-
Uncomment the
JBOSS_HOME
andJBOSS_USER
settings; save and exit. -
Copy service files to the appropriate locations.
-
Set script as an executable.
-
Set the service to start automatically.
-
Create the
/var/run/jboss-eap
directory and set thejboss-eap
user as the owner. -
Change the ownership of
/opt/jboss-eap
as well.
-
-
Challenge
Set SELinux Policy for JBoss
An SELinux type enforcement file is provided at
/home/cloud_user/selinux/jboss-eap-rhel.te
.-
Create a policy module from this file.
-
Add the policy module.
-
-
Challenge
Start the JBoss EAP Service
Start the service by running
sudo systemctl start jboss-eap-rhel
.
What's a lab?
Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.
Provided environment for hands-on practice
We will provide the credentials and environment necessary for you to practice right within your browser.
Guided walkthrough
Follow along with the author’s guided walkthrough and build something new in your provided environment!
Did you know?
On average, you retain 75% more of your learning if you get time for practice.