Red Hat JBoss Enterprise Application Platform-7.4-Installation Guide-En-US
Red Hat JBoss Enterprise Application Platform-7.4-Installation Guide-En-US
Platform 7.4
Installation Guide
For Use with Red Hat JBoss Enterprise Application Platform 7.4
The text of and illustrations in this document are licensed by Red Hat under a Creative Commons
Attribution–Share Alike 3.0 Unported license ("CC-BY-SA"). An explanation of CC-BY-SA is
available at
http://creativecommons.org/licenses/by-sa/3.0/
. In accordance with CC-BY-SA, if you distribute this document or an adaptation of it, you must
provide the URL for the original version.
Red Hat, as the licensor of this document, waives the right to enforce, and agrees not to assert,
Section 4d of CC-BY-SA to the fullest extent permitted by applicable law.
Red Hat, Red Hat Enterprise Linux, the Shadowman logo, the Red Hat logo, JBoss, OpenShift,
Fedora, the Infinity logo, and RHCE are trademarks of Red Hat, Inc., registered in the United States
and other countries.
Linux ® is the registered trademark of Linus Torvalds in the United States and other countries.
XFS ® is a trademark of Silicon Graphics International Corp. or its subsidiaries in the United States
and/or other countries.
MySQL ® is a registered trademark of MySQL AB in the United States, the European Union and
other countries.
Node.js ® is an official trademark of Joyent. Red Hat is not formally related to or endorsed by the
official Joyent Node.js open source or commercial project.
The OpenStack ® Word Mark and OpenStack logo are either registered trademarks/service marks
or trademarks/service marks of the OpenStack Foundation, in the United States and other
countries and are used with the OpenStack Foundation's permission. We are not affiliated with,
endorsed or sponsored by the OpenStack Foundation, or the OpenStack community.
Abstract
This Installation Guide contains supported installation methods for Red Hat JBoss Enterprise
Application Platform (JBoss EAP). The guide also includes instructions for configuring JBoss EAP
as a service or as a detached process with a daemon, and instructions for uninstalling JBoss EAP.
Table of Contents
Table of Contents
. . . . . . . . . . . . . FEEDBACK
PROVIDING . . . . . . . . . . . . ON
. . . .JBOSS
. . . . . . . .EAP
. . . . .DOCUMENTATION
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3. . . . . . . . . . . . .
. . . . . . . . . .OPEN
MAKING . . . . . . SOURCE
. . . . . . . . . .MORE
. . . . . . .INCLUSIVE
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4. . . . . . . . . . . . .
.CHAPTER
. . . . . . . . . . 1.. .PREPARING
. . . . . . . . . . . . .TO
. . . .INSTALL
. . . . . . . . .JBOSS
. . . . . . . .EAP
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5. . . . . . . . . . . . .
1.1. JBOSS EAP INSTALLATION METHODS 5
1.2. THE EAP_HOME VARIABLE 5
.CHAPTER
. . . . . . . . . . 2.
. . ARCHIVE
. . . . . . . . . . INSTALLATION
. . . . . . . . . . . . . . . . .OF
. . . JBOSS
. . . . . . . .EAP
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7. . . . . . . . . . . . .
2.1. DOWNLOADING JBOSS EAP ARCHIVE 7
2.2. INSTALLING JBOSS EAP BY USING THE ARCHIVE 7
2.3. JBOSS EAP CONFIGURATION FILE 8
2.4. CONFIGURING JBOSS EAP ARCHIVE INSTALLATION AS A SERVICE ON RHEL 9
2.5. REMOVING JBOSS EAP SERVICE ON RHEL 10
2.6. INSTALLING JBOSS EAP ARCHIVE INSTALLATION AS A SERVICE ON MICROSOFT WINDOWS SERVER
11
2.7. CONFIGURING JBOSS EAP ARCHIVE INSTALLATION AS A SERVICE ON MICROSOFT WINDOWS
SERVER 12
2.8. STARTING AND STOPPING THE JBOSS EAP SERVICE ON MICROSOFT WINDOWS SERVER 13
2.9. REMOVING JBOSS EAP SERVICE ON MICROSOFT WINDOWS SERVER 14
2.10. INSTALLING AND STARTING JBOSS EAP ARCHIVE INSTALLATION BY USING JSVC 14
2.11. JSVC COMMANDS TO START OR STOP JBOSS EAP AS A STANDALONE SERVER 15
2.12. JSVC COMMANDS TO START OR STOP JBOSS EAP ON A MANAGED DOMAIN 16
2.13. UNINSTALLING A JBOSS EAP ARCHIVE INSTALLATION 18
.CHAPTER
. . . . . . . . . . 3.
. . JBOSS
. . . . . . . . EAP
. . . . .INSTALLER
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
..............
3.1. DOWNLOADING AND INSTALLING THE JBOSS EAP INSTALLER 19
3.2. RUNNING THE JBOSS EAP GRAPHICAL INSTALLER 19
3.3. RUNNING THE JBOSS EAP TEXT-BASED INSTALLER 31
3.4. CONFIGURING JBOSS EAP INSTALLER INSTALLATION AS A SERVICE ON RHEL 32
3.5. CONFIGURING JBOSS EAP INSTALLER INSTALLATION AS A SERVICE ON MICROSOFT WINDOWS
SERVER 33
3.6. INSTALLING AND RUNNING THE JBOSS EAP INSTALLER INSTALLATION BY USING JSVC 34
3.7. USING THE AUTOMATED INSTALLER INSTALLATION 35
3.8. UNATTENDED AUTOMATED INSTALLER INSTALLATION 36
3.9. PROVIDING THE PASSWORD AS AN ARGUMENT IN THE INSTALLER COMMAND 36
3.10. PROVIDING THE PASSWORD AS A COMPLETED VARIABLES FILE 36
3.11. UNINSTALLING A JBOSS EAP INSTALLER WITH THE GRAPHICAL UNINSTALLER 37
3.12. UNINSTALLING JBOSS EAP INSTALLER INSTALLATION WITH THE TEXT UNINSTALLER 38
.CHAPTER
. . . . . . . . . . 4.
. . .RPM
. . . . .INSTALLATION
. . . . . . . . . . . . . . . . OF
. . . .JBOSS
. . . . . . . .EAP
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .39
..............
4.1. SUBSCRIBING TO A MINOR JBOSS EAP REPOSITORY 39
4.2. INSTALLING THE JBOSS EAP RPM INSTALLATION ON RHEL 39
4.3. CHANGING REPOSITORIES 41
4.4. CONFIGURING JBOSS EAP RPM INSTALLATION AS A SERVICE ON RHEL 41
4.5. INSTALLING JBOSS EAP RPM INSTALLATION BY USING JSVC 42
4.6. JSVC COMMANDS TO START OR STOP JBOSS EAP AS A STANDALONE SERVER 43
4.7. JSVC COMMANDS TO START OR STOP JBOSS EAP AS A MANAGED DOMAIN 44
4.8. UNINSTALLING A JBOSS EAP RPM INSTALLATION 46
1
Red Hat JBoss Enterprise Application Platform 7.4 Installation Guide
2
PROVIDING FEEDBACK ON JBOSS EAP DOCUMENTATION
Procedure
2. Please include the Document URL, the section number and describe the issue.
4. Provide a detailed description of the issue or enhancement in the Description. Include a URL to
where the issue occurs in the documentation.
5. Clicking Submit creates and routes the issue to the appropriate documentation team.
3
Red Hat JBoss Enterprise Application Platform 7.4 Installation Guide
4
CHAPTER 1. PREPARING TO INSTALL JBOSS EAP
The following table provides a brief overview of each type of installation and links to the sections that
cover the relevant processes.
Method Description
Installer installation
You can run the installer on a console or as a graphical wizard.
Both options provide step-by-step instructions for installing
and configuring the server instance. The Installer Installation is
the preferred method to install JBoss EAP on all supported
platforms.
Archive installation
The archive installation is suitable for installation on all
supported operating systems.
NOTE
RPM installation
You can install JBoss EAP using RPM packages on supported
installations of Red Hat Enterprise Linux 6+.
NOTE
5
Red Hat JBoss Enterprise Application Platform 7.4 Installation Guide
NOTE
Depending on the installation option you choose to install JBoss EAP, you can locate the installation
directory or the default path as follows:
If you installed JBoss EAP using the archive installation method, the installation directory is the
jboss-eap-7.4 directory where you extracted the archive.
If you installed JBoss EAP using the installer application, the default path for EAP_HOME is
${user.home}/EAP-7.4.0:
If you installed JBoss EAP using the RPM installation method, the installation directory is
/opt/rh/eap7/root/usr/share/wildfly/.
6
CHAPTER 2. ARCHIVE INSTALLATION OF JBOSS EAP
Prerequisites
Review the JBoss EAP 7 supported configurations and ensure that your system is supported.
Procedure
2. Click Downloads.
3. Select Red Hat JBoss Enterprise Application Platform in the Product Downloads list.
5. Find Red Hat JBoss Enterprise Application Platform 7.4.0in the list and click the Download
link.
Prerequisites
Review the JBoss EAP 7 supported configurations and ensure that your system is supported.
If you are using Windows, set the JAVA_HOME and PATH environment variables. If you do not
have this set up, shortcuts do not work.
Procedure
2. Click Downloads.
3. Select Red Hat JBoss Enterprise Application Platform in the Product Downloads list.
7
Red Hat JBoss Enterprise Application Platform 7.4 Installation Guide
5. Find Red Hat JBoss Enterprise Application Platform 7.4.0in the list and select the Download
link.
6. Optional: Move the archive file to the server and location where you want to install JBoss EAP.
NOTE
For Red Hat Enterprise Linux, extract the archive file by entering the following command in
the management CLI:
$ unzip jboss-eap-7.4.0.zip
For Windows Server, right-click the archive file and select Extract All.
NOTE
EAP_HOME is the top-level directory for the JBoss EAP installation. The directory is
created by extracting the archive.
Additional resources
See Setting up the EAP_HOME variable in the JBoss EAP Installation Guide.
For more information about authentication and authorization options, see Management Users in
the JBoss EAP Configuration Guide.
The startup script and an associated configuration file are located in the EAP_HOME/bin/init.d/
directory.
NOTE
Several configurable options exist in the jboss-eap.conf file. You must provide the
correct values for JBOSS_HOME and the JBOSS_USER.
If you want to start JBoss EAP in a managed domain, add JBOSS_MODE=domain to jboss-eap.conf.
For example, to specify custom domain configuration files, add
JBOSS_DOMAIN_CONFIG=DOMAIN_CONFIG_FILE.xml and
JBOSS_HOST_CONFIG=HOST_CONFIG_FILE.xml.
NOTE
8
CHAPTER 2. ARCHIVE INSTALLATION OF JBOSS EAP
NOTE
Prerequisites
Procedure
1. Configure the start-up options in the jboss-eap.conf file by opening the jboss-eap.conf in a
text editor and set the options for your JBoss EAP installation.
2. Copy the service initialization and configuration files into the system directories:
b. Copy the service startup script to the /etc/init.d directory and give it execute permissions:
3. Add the new jboss-eap-rhel.sh service to the list of automatically started services using the
chkconfig service management command:
4. Verify that the service has been installed correctly by using one of the following commands.
The service starts. If the service does not start and you get an error message, check the
error logs and make sure that the options in the configuration file are set correctly.
NOTE
9
Red Hat JBoss Enterprise Application Platform 7.4 Installation Guide
NOTE
Red Hat Enterprise Linux 9 does not have the initscripts package in the
default build. This package includes the /etc/init.d/functions file used by the
jboss-eap-rhel.sh service. The /etc/init.d/functions file is required to start
JBoss EAP as a service; therefore, install the initscripts package using the
following command:
i. Restart systemctl:
5. Optional: To make the service start automatically when the Red Hat Enterprise Linux server
starts, run the following command:
Verification
To check the permissions of a file, enter the ls -l command in the directory containing the file.
To check that the automatic service start is enabled, enter the following command:
Additional resources
For more information about controlling the state of services, see Management system services
in the JBoss EAP Configuring basic system settings guide .
For more information about viewing error logs, see Bootup logging in the JBoss EAP
Configuration Guide.
Procedure
1. If the service is running, open a terminal and stop the service with one of the following
commands:
10
CHAPTER 2. ARCHIVE INSTALLATION OF JBOSS EAP
$ sudo rm /etc/init.d/jboss-eap-rhel.sh
$ sudo rm /etc/default/jboss-eap.conf
Prerequisites
Procedure
a. Open a browser and log in to the Red Hat Customer Portal’s Software Downloads page .
d. From the Releases list, select Red Hat JBoss Core Services Apache Jsvc. Ensure that you
select the correct platform and architecture for your system. Next, select the Download
link.
2. Extract the downloaded archive file into the directory containing your JBoss EAP installation
directory. This results in a jbcs-jsvc-<VERSION> directory at the same depth as your JBoss
EAP installation directory. The following example shows the path to the jbcs-jsvc-<VERSION>
directory:
C:\Program Files
├── jboss-eap-7.4
│ ├── bin
│ └── ...
└── jbcs-jsvc-<VERSION>
11
Red Hat JBoss Enterprise Application Platform 7.4 Installation Guide
3. Install the service by opening the terminal and changing the directories to EAP_HOME\bin. For
a list of all possible options, run service.bat without any arguments
NOTE
If you specify the /jbossuser and /jbosspass parameters, you must ensure that
your JBoss EAP user’s password does not contain a hash (#) or a semicolon ( ;).
The following examples show a basic service.bat install command that is needed to create a
new service for either a standalone server, or a server in a managed domain.
Enter the following command, adjusting the log level for the service as required:
In the following command, replace EAP_HOST_NAME with your JBoss EAP host controller
name. If you specify the /host parameter without providing a JBoss EAP host controller
name, the name defaults to master.
Verification
Verify the new service in the Services console by opening the Windows Services console
(services.msc) and checking that the service is created.
If the default service name was used, in the list of Windows services the new service is displayed as
JBossEAP7.
NOTE
From the Services console you can start and stop the service, and change its settings of
how and when it starts.
12
CHAPTER 2. ARCHIVE INSTALLATION OF JBOSS EAP
WARNING
If you use the set command to set system environment variables in a Windows
Server command prompt, it does not permanently set the environment variables.
You must use either the setx command, or the System interface in the Control
Panel.
Prerequisites
Procedure
1. Use the setx command to create two system environment variables: JBOSS_HOME and
NOPAUSE.
a. Configure the path for the JBOSS_HOME variable to the JBoss EAP installation directory.
b. The jboss-cli.bat script contains the if "x%NOPAUSE%" == "x" pause line of code. This
code creates a status message when you issue the pause command. To disable these
messages, you must specify a value for the NOPAUSE variable. For example, setting the
NOPAUSE variable to NOPAUSE=true disables status messages from appearing when a
script completes.
Additional resources
To learn more about how to set environment variables on a Microsoft Windows Server, refer to
the Microsoft Windows documentation.
Prerequisites
Procedure
13
Red Hat JBoss Enterprise Application Platform 7.4 Installation Guide
To start the service, at the command prompt issue the following command:
To stop the service, at the command prompt issue the following command:
Procedure
1. If the service is running, open the command prompt and stop the service by entering the net
stop command with the name of the service:
service.bat uninstall
NOTE
Although Jsvc works on RHEL, we strongly recommend that you use the native methods
for running JBoss EAP as a service on RHEL.
Jsvc is a set of libraries and applications that provide Java applications the ability to run as a
background service. Applications run using Jsvc can perform operations as a privileged user, then switch
identity to a non-privileged user.
Procedure
1. Open a browser and log in to the Red Hat Customer Portal’s Software Downloads page .
4. From the Releases list, select Red Hat JBoss Core Services Apache Jsvc. Ensure that you
14
CHAPTER 2. ARCHIVE INSTALLATION OF JBOSS EAP
4. From the Releases list, select Red Hat JBoss Core Services Apache Jsvc. Ensure that you
select the correct platform and architecture for your system. Next, select the Download link.
5. Extract the downloaded archive file into the directory containing your JBoss EAP installation
directory.
This results in a jbcs-jsvc-<VERSION> directory at the same depth as your JBoss EAP
installation directory. For example:
/var/opt/
├── jboss-eap-7.4
│ ├── bin
│ └── ...
└── jbcs-jsvc-<VERSION>
6. Optional: The command examples for using Jsvc to start JBoss EAP assume that a jboss user
has been created. If you have not already created a user for JBoss EAP, run the following
commands to create the jboss user and group:
Additional resources
To learn more about controlling JBoss Core Services, see Configuring the Apache HTTP Server
Installation in the Apache HTTP Server Installation Guide.
JSVC_BIN EAP_HOME/../jbcs-jsvc-<VERSION>/sbin/jsvc
JSVC_JAR EAP_HOME/../jbcs-jsvc-<VERSION>/lib/commons-
daemon.jar
CONF_DIR EAP_HOME/standalone/configuration
LOG_DIR EAP_HOME/standalone/log
The following example demonstrates starting a standalone JBoss EAP server using Jsvc with a
JSVC_BIN \ path:
$ JSVC_BIN \
-outfile LOG_DIR/jsvc.out.log \
15
Red Hat JBoss Enterprise Application Platform 7.4 Installation Guide
-errfile LOG_DIR/jsvc.err.log \
-pidfile LOG_DIR/jsvc.pid \
-user jboss \
-D[Standalone] -XX:+UseCompressedOops -Xms1303m \
-Xmx1303m -XX:MaxPermSize=256m \
-Djava.net.preferIPv4Stack=true \
-Djboss.modules.system.pkgs=org.jboss.byteman \
-Djava.awt.headless=true \
-Dorg.jboss.boot.log.file=LOG_DIR/server.log \
-Dlogging.configuration=file:CONF_DIR/logging.properties \
-Djboss.modules.policy-permissions \
-cp EAP_HOME/jboss-modules.jar:JSVC_JAR \
-Djboss.home.dir=EAP_HOME \
-Djboss.server.base.dir=EAP_HOME/standalone \
@org.jboss.modules.Main -start-method main \
-mp EAP_HOME/modules \
-jaxpmodule javax.xml.jaxp-provider \
org.jboss.as.standalone
The following example demonstrates stopping a standalone JBoss EAP server using Jsvc with a
JSVC_BIN \ path:
$ JSVC_BIN \
-stop \
-outfile LOG_DIR/jsvc.out.log \
-errfile LOG_DIR/jsvc.err.log \
-pidfile LOG_DIR/jsvc.pid \
-user jboss \
-D[Standalone] -XX:+UseCompressedOops -Xms1303m \
-Xmx1303m -XX:MaxPermSize=256m \
-Djava.net.preferIPv4Stack=true \
-Djboss.modules.system.pkgs=org.jboss.byteman \
-Djava.awt.headless=true \
-Dorg.jboss.boot.log.file=LOG_DIR/server.log \
-Dlogging.configuration=file:CONF_DIR/logging.properties \
-Djboss.modules.policy-permissions \
-cp EAP_HOME/jboss-modules.jar:JSVC_JAR \
-Djboss.home.dir=EAP_HOME \
-Djboss.server.base.dir=EAP_HOME/standalone \
@org.jboss.modules.Main -start-method main \
-mp EAP_HOME/modules \
-jaxpmodule javax.xml.jaxp-provider \
org.jboss.as.standalone
16
CHAPTER 2. ARCHIVE INSTALLATION OF JBOSS EAP
JSVC_BIN EAP_HOME/../jbcs-jsvc-<VERSION>/sbin/jsvc
JSVC_JAR EAP_HOME/../jbcs-jsvc-<VERSION>/lib/commons-
daemon.jar
CONF_DIR EAP_HOME/domain/configuration
LOG_DIR EAP_HOME/domain/log
Before you issue the following command, set the JAVA_HOME system environment variable.
The following example demonstrates starting a JBoss EAP managed domain using Jsvc:
$ JSVC_BIN \
-outfile LOG_DIR/jsvc.out.log \
-errfile LOG_DIR/jsvc.err.log \
-pidfile LOG_DIR/jsvc.pid \
-user jboss \
-nodetach -D"[Process Controller]" -server -Xms64m \
-Xmx512m -XX:MaxPermSize=256m \
-Djava.net.preferIPv4Stack=true \
-Djboss.modules.system.pkgs=org.jboss.byteman \
-Djava.awt.headless=true \
-Dorg.jboss.boot.log.file=LOG_DIR/process-controller.log \
-Dlogging.configuration=file:CONF_DIR/logging.properties \
-Djboss.modules.policy-permissions \
-cp "EAP_HOME/jboss-modules.jar:JSVC_JAR" \
org.apache.commons.daemon.support.DaemonWrapper \
-start org.jboss.modules.Main -start-method main \
-mp EAP_HOME/modules org.jboss.as.process-controller \
-jboss-home EAP_HOME -jvm "${JAVA_HOME}"/bin/java \
-mp EAP_HOME/modules -- \
-Dorg.jboss.boot.log.file=LOG_DIR/host-controller.log \
-Dlogging.configuration=file:CONF_DIR/logging.properties \
-Djboss.modules.policy-permissions \
-server -Xms64m -Xmx512m -XX:MaxPermSize=256m \
-Djava.net.preferIPv4Stack=true \
-Djboss.modules.system.pkgs=org.jboss.byteman \
-Djava.awt.headless=true -- -default-jvm "${JAVA_HOME}"/bin/java \
The following example demonstrates stopping a JBoss EAP managed domain using Jsvc:
$ JSVC_BIN \
-stop \
-outfile LOG_DIR/jsvc.out.log \
-errfile LOG_DIR/jsvc.err.log \
-pidfile LOG_DIR/jsvc.pid \
-user jboss \
-nodetach -D"[Process Controller]" -server -Xms64m \
-Xmx512m -XX:MaxPermSize=256m \
17
Red Hat JBoss Enterprise Application Platform 7.4 Installation Guide
-Djava.net.preferIPv4Stack=true \
-Djboss.modules.system.pkgs=org.jboss.byteman \
-Djava.awt.headless=true \
-Dorg.jboss.boot.log.file=LOG_DIR/process-controller.log \
-Dlogging.configuration=file:CONF_DIR/logging.properties \
-Djboss.modules.policy-permissions \
-cp "EAP_HOME/jboss-modules.jar:JSVC_JAR" \
org.apache.commons.daemon.support.DaemonWrapper \
-start org.jboss.modules.Main -start-method main \
Depending on your work environment, the archive installation method might not meet the needs of your
environment. You can remove the instance of JBoss EAP and any services associated with it.
Thereafter, you can install JBoss EAP using a suitable installation method.
Prerequisites
Optional: Back up any modified configuration files and deployments that may be reused.
Procedure
2. Delete any scripts that depend on JBoss EAP being installed on your machine.
18
CHAPTER 3. JBOSS EAP INSTALLER
Prerequisites
Review the JBoss EAP 7 supported configurations and ensure that your system is supported.
Procedure
2. From the Product Downloads list, select Red Hat JBoss Enterprise Application Platform.
3. Click Downloads.
5. Find Red Hat JBoss Enterprise Application Platform 7.4.0 Installerfile in the list and click the
Download link.
Prerequisites
Review the JBoss EAP 7 supported configurations and ensure that your system is supportable.
Procedure
1. Open a terminal and navigate to the directory containing the downloaded JBoss EAP installer
file.
19
Red Hat JBoss Enterprise Application Platform 7.4 Installation Guide
3. Choose the desired language for the installer and click OK.
4. Agree with the prompt for The EULA for RED HAT JBOSS MIDDLEWARE by selecting "I accept
the terms of this license agreement", and then click Next.
5. Select the installation path for JBoss EAP, and click Next.
6. Select the components to install. Required components are disabled for deselection.
10. Choose a default configuration for your JBoss EAP installation, or choose to perform an
advanced configuration with the installer.
NOTE
Even if you choose a default configuration, you can still alter your configuration
using the JBoss EAP management interfaces at a later time.
11. Select Perform default configuration, or select Perform advanced configuration and select
the items to configure, and then click Next.
Configure a password vault to store your sensitive passwords in an encrypted keystore, and
then click Next.
For more information, see the password vault documentation in the How To Configure Server
Security guide.
SSL Security
You can enable SSL Security in the advanced configuration of the runtime environment by
specifying the location of the keystore and the password for securing the JBoss EAP
management interfaces.
a. Specify the location of the keystore and the password for securing the JBoss EAP
management interfaces.
For more information, see the documentation on securing the management interfaces in the
How To Configure Server Security guide.
WARNING
LDAP configuration
You can enable the LDAP server to be the authentication and authorization authority as follows:
c. On the LDAP Configuration screen, complete the required configurations and click Next.
22
CHAPTER 3. JBOSS EAP INSTALLER
For more information, see the LDAP documentation in How to Configure Identity Management .
Specify the values for your LDAP Security Realm, and then click Next.
For more information, see the LDAP documentation in How to Configure Identity Management .
Figure 3.5. JBoss EAP installer - LDAP security realm configuration screen
23
Red Hat JBoss Enterprise Application Platform 7.4 Installation Guide
Figure 3.5. JBoss EAP installer - LDAP security realm configuration screen
a. Configure the security domain for your JBoss EAP server instance.
b. Click Next.
For more information, see Security Domains in the Security Architecture guide.
b. Click Next.
Figure 3.7. JBoss EAP installer - Java Secure Socket Extension configuration screen
25
Red Hat JBoss Enterprise Application Platform 7.4 Installation Guide
Quickstarts
You can choose to install quickstarts in the advanced configuration of the runtime environment
by selecting the quickstart installation path, and then clicking Next.
Socket bindings
Choose one of the following options to configure your socket bindings:
Configure server port bindings in the advanced configuration settings of the runtime
environment by configuring port offsets for all default bindings, or configuring custom port
bindings. You might need to determine whether the installation uses the default port
bindings.
Configure custom bindings by selecting whether to configure the ports for standalone
mode, domain mode, or both.
If the host is configured for IPv6 only, select the Enable pure IPv6 configuration check box
and the installer makes the required configuration changes.
Configure custom port bindings for standalone mode by setting the ports and system
properties for each of the standalone configurations (standalone, standalone ha,
standalone full, standalone full-ha), and then click Next.
Figure 3.10. JBoss EAP installer - Custom socket bindings for standalone configurations
screen
27
Red Hat JBoss Enterprise Application Platform 7.4 Installation Guide
Configure custom port bindings for domain mode by setting the ports and system
properties for the host configuration (domain host) and each of the domain profiles
(domain default, domain ha, domain full, domain full-ha), and then click Next.
Figure 3.11. JBoss EAP installer - Custom socket bindings for domain configurations screen
Logging options
You can configure logging levels in the advanced configuration settings of the runtime
environment as follows:
a. Select the desired logging levels for the root logger and the console logger.
b. Click Next.
a. Configure the Jakarta Server Faces options and paths to your Jakarta Server Faces JARs.
b. Click Next.
For more information, see Installing a Jakarta Server Faces Implementation in the
Configuration Guide.
c. Click Next.
For more information, see the datasource JDBC driver section in the Configuration Guide.
Datasource setup
You can install a JDBC driver and install a datasource in the advanced configuration settings of
the runtime environment by configuring a datasource.
b. Click Next.
For more information, see the details of datasource management in the Configuration Guide.
14. Select the Create shortcuts in the Start-Menu check box to create shortcuts, and then click
Next.
NOTE
Only alphanumeric characters, dash (-), and underscore (_) characters are
allowed. On Microsoft Windows, the slash (/) and backslash (\) characters are
also allowed.
15. Click Generate installation script and properties fileif you want to capture the selected
installation options for a future automated installer installation, and then click Done.
Installation is now complete. The directory created by the installer is the top-level directory for the
server. This is referred to as EAP_HOME.
Prerequisites
Review the JBoss EAP 7 supported configurations and ensure that your system is supported.
31
Red Hat JBoss Enterprise Application Platform 7.4 Installation Guide
If you are using Windows, set the JAVA_HOME and PATH environment variables. If you do not
have this set up, shortcuts do not work.
Procedure
1. Open a terminal and navigate to the directory containing the downloaded JBoss EAP installer.
3. Follow the prompts to install JBoss EAP. The directory created by the installer is the top-level
directory for the server. This is referred to as EAP_HOME.
Additional resources
See Setting up the EAP_HOME variable, in the JBoss EAP Installation Guide.
Prerequisites
Procedure
1. Configure the start-up options in the jboss-eap.conf file by opening the jboss-eap.conf in a
text editor and set the options for your JBoss EAP installation.
2. Copy the service initialization and configuration files into the system directories:
b. Copy the service startup script to the /etc/init.d directory and give it execute permissions:
3. Add the new jboss-eap-rhel.sh service to the list of automatically started services using the
chkconfig service management command:
4. Verify that the service has been installed correctly by using one of the following commands.
32
CHAPTER 3. JBOSS EAP INSTALLER
The service starts. If the service does not start and you get an error message, check the
error logs and make sure that the options in the configuration file are set correctly.
5. Optional: To make the service start automatically when the Red Hat Enterprise Linux server
starts, run the following command:
Verification
To check the permissions of a file, enter the ls -l command in the directory containing the
file.
To check that the automatic service start is enabled, enter the following command:
For more information about controlling the state of services, see Management system
services in the JBoss EAP Configuring basic system settings guide .
For more information about viewing error logs, see Bootup logging in the JBoss EAP
Configuration Guide.
NOTE
If you use the set command to set system environment variables in a Windows Server
command prompt it does not permanently set the environment variables. You must use
either the setx command, or the System interface in the Control Panel.
Prerequisites
Ensure that you have an instance of the JBoss EAP server that is not running.
33
Red Hat JBoss Enterprise Application Platform 7.4 Installation Guide
Procedure
The procedure for configuring JBoss EAP installer installation as a service in Microsoft Windows Server
is similar to that of the archive installation method. See Configuring JBoss EAP archive installation as a
service on Microsoft Windows Server.
WARNING
Although Jsvc works on RHEL, we strongly recommend that you use the native
methods for running JBoss EAP as a service on RHEL.
Jsvc is a set of libraries and applications that provide Java applications the ability to run as a
background service. Applications run using Jsvc can perform operations as a privileged user, then switch
identity to a non-privileged user.
Prerequisites
Ensure that you have an instance of the JBoss EAP server that is not running.
Procedure
The procedure for configuring the JBoss EAP installer installation by using Jsvc is similar to that of the
archive installation method. For more information refer to the following sections in the JBoss EAP
Installation Guide:
Optional: Configuring JBoss EAP installer installation as a service on Microsoft Windows Server
Additional resources
For information about controlling JBoss Core Services, see Configuring the Apache HTTP
Server Installation in the Apache HTTP Server Installation Guide.
For information about configuring a JBoss EAP archive installation as a service using Jsvc, see
34
CHAPTER 3. JBOSS EAP INSTALLER
For information about configuring a JBoss EAP archive installation as a service using Jsvc, see
Archive installation of JBoss EAP.
For information about configuring a JBoss EAP installer installation on a Microsoft Windows
server, see Configuring JBoss EAP installer installation as a service on Microsoft Windows
Server.
WARNING
The automated installer is not backward compatible. You cannot use an installation
script generated from a previous version of JBoss EAP with the automated installer.
Only use installation scripts generated by the same minor version of JBoss EAP.
For example JBoss EAP 7.4.
Prerequisites
Procedure
1. Open a terminal and navigate to the directory containing the downloaded JBoss EAP installer
file.
2. Run the following command to install JBoss EAP using the automatic installation script XML file:
By default, the installer prompts you to enter any passwords required for the JBoss EAP
configuration. You can do an unattended install by pre-setting the passwords for the installation.
NOTE
You can store the automatic installation script XML file on a network host, and
use HTTP or FTP to point the installer to use it for an installation. For example:
Additional resources
See Unattended automated installer installation in the JBoss EAP Installation Guide.
35
Red Hat JBoss Enterprise Application Platform 7.4 Installation Guide
When the installation script XML file is generated from a previous installer installation, an incomplete
installation script variables file is also generated. It has the same file name as the installation script file,
but with a .variables suffix.
The variables file contains a list of key and password parameters needed for an unattended automated
installation.
You can provide the required passwords as a completed variables file, or as an argument when running
the installer command.
Prerequisites
Procedure
1. Open the .variables file in a text editor and provide a password value for each key. The
following example demonstrates setting a password value for a key:
adminPassword = password#2
vault.keystorepwd = vaultkeystorepw
ssl.password = user12345
2. Run the installer using the automatic installation script XML file:
36
CHAPTER 3. JBOSS EAP INSTALLER
Prerequisites
Procedure
2. Run the installer using the automatic installation script XML file and specify the required
passwords as key/value pairs using the -variables argument, as demonstrated in the following
example:
NOTE
Check that you have not entered any spaces when specifying the -variables key
or value pairs.
Prerequisites
Ensure that you have an instance of the JBoss EAP server that is not running.
Procedure
The graphical uninstaller is similar to the following figure. Select the check box if you want to
delete the JBoss EAP installation directory.
4. When the uninstall process is finished, click Quit to exit the uninstaller.
Prerequisites
Ensure that you have an instance of the JBoss EAP server that is not running.
Procedure
38
CHAPTER 4. RPM INSTALLATION OF JBOSS EAP
For the JBoss EAP repository, you must subscribe to a minor JBoss EAP repository. A minor repository
provides a specific minor release of JBoss EAP 7 and all applicable patches. This allows you to maintain
the same minor version of JBoss EAP, while staying current with high severity and security patches.
For example, updating from this repository includes patches and security updates for the minor JBoss
EAP version, but does not include upgrades from JBoss EAP 7.4 to JBoss EAP 7.5.
Prerequisites
Red Hat Enterprise Linux system is registered to your account using Red Hat Subscription
Manager. For more information, see the Red Hat Subscription Management documentation .
Procedure
2. Replace EAP_MINOR_VERSION with your intended JBoss EAP minor version. For example,
7.4.
a. For Red Hat Enterprise Linux 6 and 7, replace RHEL_VERSION with either 6 or 7
depending on your Red Hat Enterprise Linux version:
A minor version of JBoss EAP provides a specific minor release and all applicable patches. When you
subscribe to a minor version of JBoss EAP, you can remain up-to-date with high severity and security
patches.
Prerequisites
Review the JBoss EAP 7 supported configurations and ensure your system is supported.
39
Red Hat JBoss Enterprise Application Platform 7.4 Installation Guide
Register to the Red Hat Enterprise Linux server using Red Hat Subscription Manager.
Procedure
2. Install JBoss EAP and JDK 11. JDK 11 is available for Red Hat Enterprise Linux 7 and later.
NOTE
If there are multiple JDKs installed on your system after groupinstall is complete, check
which JDK is used for JBoss EAP execution. By default, the system default JDK is used.
The command displays a list of installed JDKs and instructions for setting a specific JDK
as the default.
Change the JDK used by JBoss EAP by using the JAVA_HOME property.
Your installation is complete. The default EAP_HOME path for the RPM installation is
/opt/rh/eap7/root/usr/share/wildfly.
IMPORTANT
When using the RPM installer to install JBoss EAP, configuring multiple
domain or host controllers on the same machine is not supported.
Additional resources
See Setting up the EAP_HOME variable, in the JBoss EAP Installation Guide.
40
CHAPTER 4. RPM INSTALLATION OF JBOSS EAP
See Subscribing to a Minor JBoss EAP repository, in the JBoss EAP Installation Guide.
For more information about changing the JAVA_HOME property, see the RPM Service
Configuration Properties section of the Configuration Guide.
Changing from the current repository to a minor repository is supported if changing to the latest
minor repository.
Changing from a minor repository to another minor repository is supported if changing to the
next minor JBoss EAP version. For example, changing from JBoss EAP 7.0 to JBoss EAP 7.1 is
supported, but changing from JBoss EAP 7.0 to JBoss EAP 7.2 is not supported.
IMPORTANT
The JBoss EAP current repository is no longer available as of JBoss EAP 7.3. If you
subscribed to the current repository for a previous release of JBoss EAP, you must
change your subscription to a minor repository for this release of JBoss EAP.
Prerequisites
Choose a repository.
Ensure that the JBoss EAP installation has all applicable updates applied.
# yum update
Procedure
1. Using Red Hat Subscription Manager, unsubscribe from the existing repository and subscribe to
the new repository. In the command below, replace EXISTING_REPOSITORY and
NEW_REPOSITORY with the respective repository names.
41
Red Hat JBoss Enterprise Application Platform 7.4 Installation Guide
Run the appropriate command for your RHEL, as demonstrated in this procedure. Replace
EAP_SERVICE_NAME with either eap7-standalone for a standalone JBoss EAP server, or eap7-
domain for a managed domain.
IMPORTANT
You cannot configure more than one JBoss EAP instance as a service on a single
machine.
Prerequisites
Procedure
chkconfig EAP_SERVICE_NAME on
Additional resources
To start or stop an RPM installation of JBoss EAP on demand, see the RPM instructions in the
JBoss EAP Configuration Guide.
See the RPM service configuration files appendix in the JBoss EAP Configuration Guide for
further details and options.
For best product performance, use the native method for running JBoss EAP as a service on your
version of RHEL.
Jsvc is a set of libraries and applications that provide Java applications the ability to run as a
background service. Applications run using Jsvc can perform operations as a privileged user and then
switch identity to a non-privileged user.
Prerequisites
Procedure
42
CHAPTER 4. RPM INSTALLATION OF JBOSS EAP
3. Subscribe to the JBoss Core Services CDN repositories for your operating system version and
architecture:
jb-coreservices-1-for-rhel-6-server-rpms
jb-coreservices-1-for-rhel-7-server-rpms
c. Run the following command as the root user to install Apache Jsvc:
Additional resources
To learn more about controlling JBoss Core Services, see Apache HTTP Server Installation
Guide.
For information about installing JBoss Core Services on RHEL, see Installing JBoss Core
Services Apache HTTP Server on Red Hat Enterprise Linux in the Apache HTTP Server
Installation Guide.
For information about installing JBoss Core Services on Windows, see Installing JBoss Core
Services Apache HTTP Server on Windows in the Apache HTTP Server Installation Guide.
For information about installing JBoss Core Services on Solaris, see Installing Apache HTTP
Server on Solaris in the Apache HTTP Server Installation Guide.
JSVC_BIN /usr/bin/jbcs-jsvc/jsvc
JSVC_JAR /usr/bin/jbcs-jsvc/commons-daemon.jar
CONF_DIR /opt/rh/eap7/root/usr/share/wildfly/standalone/configuration
LOG_DIR /opt/rh/eap7/root/usr/share/wildfly/standalone/log
43
Red Hat JBoss Enterprise Application Platform 7.4 Installation Guide
The following example demonstrates starting a JBoss EAP standalone server using Jsvc with a
JSVC_BIN \ path:
$ JSVC_BIN \
-outfile LOG_DIR/jsvc.out.log \
-errfile LOG_DIR/jsvc.err.log \
-pidfile LOG_DIR/jsvc.pid \
-user jboss \
-D[Standalone] -XX:+UseCompressedOops -Xms1303m \
-Xmx1303m -XX:MaxPermSize=256m \
-Djava.net.preferIPv4Stack=true \
-Djboss.modules.system.pkgs=org.jboss.byteman \
-Djava.awt.headless=true \
-Dorg.jboss.boot.log.file=LOG_DIR/server.log \
-Dlogging.configuration=file:CONF_DIR/logging.properties \
-Djboss.modules.policy-permissions \
-cp EAP_HOME/jboss-modules.jar:JSVC_JAR \
-Djboss.home.dir=EAP_HOME \
-Djboss.server.base.dir=EAP_HOME/standalone \
@org.jboss.modules.Main -start-method main \
-mp EAP_HOME/modules \
-jaxpmodule javax.xml.jaxp-provider \
org.jboss.as.standalone
The following example demonstrates stopping a JBoss EAP standalone server using Jsvc with a
JSVC_BIN \ path:
$ JSVC_BIN \
-stop \
-outfile LOG_DIR/jsvc.out.log \
-errfile LOG_DIR/jsvc.err.log \
-pidfile LOG_DIR/jsvc.pid \
-user jboss \
-D[Standalone] -XX:+UseCompressedOops -Xms1303m \
-Xmx1303m -XX:MaxPermSize=256m \
-Djava.net.preferIPv4Stack=true \
-Djboss.modules.system.pkgs=org.jboss.byteman \
-Djava.awt.headless=true \
-Dorg.jboss.boot.log.file=LOG_DIR/server.log \
-Dlogging.configuration=file:CONF_DIR/logging.properties \
-Djboss.modules.policy-permissions \
-cp EAP_HOME/jboss-modules.jar:JSVC_JAR \
-Djboss.home.dir=EAP_HOME \
-Djboss.server.base.dir=EAP_HOME/standalone \
@org.jboss.modules.Main -start-method main \
-mp EAP_HOME/modules \
-jaxpmodule javax.xml.jaxp-provider \
org.jboss.as.standalone
Using Java Service (Jsvc), you can enter various commands for starting or stopping JBoss EAP. The
44
CHAPTER 4. RPM INSTALLATION OF JBOSS EAP
Using Java Service (Jsvc), you can enter various commands for starting or stopping JBoss EAP. The
following table shows a list of paths that are needed for the commands for an archive JBoss EAP
installation.
JSVC_BIN /usr/bin/jbcs-jsvc/jsvc
JSVC_JAR /usr/bin/jbcs-jsvc/commons-daemon.jar
CONF_DIR /opt/rh/eap7/root/usr/share/wildfly/domain/configuration
LOG_DIR /opt/rh/eap7/root/usr/share/wildfly/domain/log
The following example demonstrates starting a JBoss EAP domain server using Jsvc with a JSVC_BIN \
path. Before you issue the following command, set the JAVA_HOME system environment variable.
$ JSVC_BIN \
-outfile LOG_DIR/jsvc.out.log \
-errfile LOG_DIR/jsvc.err.log \
-pidfile LOG_DIR/jsvc.pid \
-user jboss \
-nodetach -D"[Process Controller]" -server -Xms64m \
-Xmx512m -XX:MaxPermSize=256m \
-Djava.net.preferIPv4Stack=true \
-Djboss.modules.system.pkgs=org.jboss.byteman \
-Djava.awt.headless=true \
-Dorg.jboss.boot.log.file=LOG_DIR/process-controller.log \
-Dlogging.configuration=file:CONF_DIR/logging.properties \
-Djboss.modules.policy-permissions \
-cp "EAP_HOME/jboss-modules.jar:JSVC_JAR" \
org.apache.commons.daemon.support.DaemonWrapper \
-start org.jboss.modules.Main -start-method main \
-mp EAP_HOME/modules org.jboss.as.process-controller \
-jboss-home EAP_HOME -jvm "${JAVA_HOME}"/bin/java \
-mp EAP_HOME/modules -- \
-Dorg.jboss.boot.log.file=LOG_DIR/host-controller.log \
-Dlogging.configuration=file:CONF_DIR/logging.properties \
-Djboss.modules.policy-permissions \
-server -Xms64m -Xmx512m -XX:MaxPermSize=256m \
-Djava.net.preferIPv4Stack=true \
-Djboss.modules.system.pkgs=org.jboss.byteman \
-Djava.awt.headless=true -- -default-jvm "${JAVA_HOME}"/bin/java \
The following example demonstrates stopping a JBoss EAP domain server using Jsvc with a JSVC_BIN
\ path.
$ JSVC_BIN \
-stop \
-outfile LOG_DIR/jsvc.out.log \
-errfile LOG_DIR/jsvc.err.log \
45
Red Hat JBoss Enterprise Application Platform 7.4 Installation Guide
-pidfile LOG_DIR/jsvc.pid \
-user jboss \
-nodetach -D"[Process Controller]" -server -Xms64m \
-Xmx512m -XX:MaxPermSize=256m \
-Djava.net.preferIPv4Stack=true \
-Djboss.modules.system.pkgs=org.jboss.byteman \
-Djava.awt.headless=true \
-Dorg.jboss.boot.log.file=LOG_DIR/process-controller.log \
-Dlogging.configuration=file:CONF_DIR/logging.properties \
-Djboss.modules.policy-permissions \
-cp "EAP_HOME/jboss-modules.jar:JSVC_JAR" \
org.apache.commons.daemon.support.DaemonWrapper \
-start org.jboss.modules.Main -start-method main \
-mp EAP_HOME/modules org.jboss.as.process-controller \
-jboss-home EAP_HOME -jvm $JAVA_HOME/bin/java \
-mp EAP_HOME/modules -- \
-Dorg.jboss.boot.log.file=LOG_DIR/host-controller.log \
-Dlogging.configuration=file:CONF_DIR/logging.properties \
-Djboss.modules.policy-permissions \
-server -Xms64m -Xmx512m -XX:MaxPermSize=256m \
-Djava.net.preferIPv4Stack=true \
-Djboss.modules.system.pkgs=org.jboss.byteman \
-Djava.awt.headless=true -- -default-jvm $JAVA_HOME/bin/java
WARNING
Uninstalling a JBoss EAP installation that is using the RPM method is not
recommended.
46