Chapter 2. Installing JBoss EAP 8.1 using the jboss-eap-installation-manager
You can install JBoss EAP 8.1 by using one of the following installation methods:
-
The
jboss-eap-installation-managerinstallation method. - The GUI installer.
- The archive installation method.
- The RPM installation method.
This section only covers the jboss-eap-installation-manager installation method.
2.1. Prerequisites Copy linkLink copied to clipboard!
- You have created an account on the Red Hat Customer Portal.
- You have reviewed JBoss EAP 8.1 supported configurations.
- You have installed a supported JDK.
- You have access to the internet.
2.2. Downloading the jboss-eap-installation-manager Copy linkLink copied to clipboard!
Download the jboss-eap-installation-manager CLI tool from the Red Hat Customer Portal
Prerequisites
- You have access to the internet
- You have created an account on the Red Hat customer portal and are logged in.
Procedure
-
On the Red Hat customer portal, download the
jboss-eap-installation-manager.
Additional resources
2.3. Installing JBoss EAP using the jboss-eap-installation-manager Copy linkLink copied to clipboard!
Install JBoss EAP by following the procedures below.
Prerequisites
- You have access to the internet
- You have created an account on the Red Hat customer portal and are logged in.
-
You have downloaded the
jboss-eap-installation-manager.
Procedure
-
Open your terminal emulator and navigate to the directory containing the downloaded
jboss-eap-installation-manager. Install JBoss EAP by running the following command:
Syntax
$ ./jboss-eap-installation-manager.sh install --profile eap-8.0 --dir eap-8Example
$ ./jboss-eap-installation-manager.sh install --profile eap-8.0 --dir eap-8 Installing profile: eap-8.0 Using channels: # eap-8.0 manifest: org.jboss.eap.channels:eap-8.0 repositories: id: mrrc url: https://maven.repository.redhat.com/ga/Review the end user license agreement, and follow the rest of the prompts to install JBoss EAP.
Accept the agreement(s) [y/N]y Feature-packs resolved. Packages installed. Downloaded artifacts. JBoss modules installed. Configurations generated. JBoss examples installed.NoteThe
jboss-eap-installation-manageris also supported on Microsoft Windows. To use this script on a Windows machine, replace the.shwith.batin your script.
Additional resources
2.4. Reverting JBoss EAP updates using the jboss-eap-installation-manager Copy linkLink copied to clipboard!
After installing an update, you can revert back to a previously installed version of JBoss EAP.
Prerequisites
- You have access to the internet.
- You have created an account on the Red Hat customer portal and are logged in.
- You have updated JBoss EAP.
The
jboss-eap-installation-manageris present on your system.NoteIf you do not have
jboss-eap-installation-manageravailable, you can download it from the Red Hat Customer Portal.
Procedure
-
Navigate to the directory containing the
jboss-eap-installation-managerby using your terminal emulator. View the history of all versions of JBoss EAP, which you have installed:
$ ./jboss-eap-installation-manager.sh history --dir eap-8NoteThis command displays all JBoss EAP installations and updates with their respective installation state ID.
Investigate specific changes made to JBoss EAP during an update:
$ ./jboss-eap-installation-manager.sh history --dir eap-8 --revision <Installation state>This command displays specific JBoss EAP components that have been updated
Revert JBoss EAP by specifying the installation state of the JBoss EAP version in the following command:
Syntax
$ ./jboss-eap-installation-manager.sh revert perform --dir eap-8 --revision <Installation state>ImportantYou must specify the installation state of the JBoss EAP version.
Example
$ ./jboss-eap-installation-manager.sh revert perform --dir eap-8 --revision 6a6f55eb Feature-packs resolved. Packages installed. Downloaded artifacts. JBoss modules installed. Configurations generated. JBoss examples installed. Reverted server prepared, comparing changes No changes foundFollow the rest of the prompts to revert JBoss EAP updates.
Continue with revert [y/N]: y Applying changes Server reverted to state ea768519. Operation completed in 55.39 seconds.
2.5. Installing JBoss EAP 8.1 Offline Copy linkLink copied to clipboard!
You can install JBoss EAP 8.1 offline. By choosing this method, you can install from a local or file-system Maven repository.
Prerequisites
-
You have downloaded the
jboss-eap-installation-managerfrom the Red Hat Customer Portal. - You have downloaded Maven repository archive file from the Red Hat Customer Portal.
Procedure
- Extract the Maven repository archive file.
- Open your terminal emulator and navigate to the directory containing the extracted Maven repository file.
Install JBoss EAP by running the following command:
$ ./jboss-eap-installation-manager.sh install --profile eap-8.0 --dir eap-8 --repositories file:maven-repository
2.6. Managing JBoss EAP installation channels Copy linkLink copied to clipboard!
After successfully setting up JBoss EAP, you can change the channels to which your JBoss EAP installation is subscribed.
Prerequisite
The
jboss-eap-installation-manageris present on your system.NoteIf you do not have
jboss-eap-installation-manageravailable, you can download it from the Red Hat Customer Portal.
Procedure
Managing JBoss EAP installation channels
Investigate the channels your JBoss EAP installation is currently subscribed to by using the following command:
$ ./jboss-eap-installation-manager.sh channel list --dir eap-8Subscribe your JBoss EAP installation to a new channel by using the following command:
$ ./jboss-eap-installation-manager.sh channel add --channel-name <CHANNEL_NAME> --manifest <GROUP_ID:ARTIFACT_ID> --repositories <ID::REPOSITORY_URL> --dir eap-8unsubscribe your JBoss EAP installation from a channel using the following command:
$ ./jboss-eap-installation-manager.sh channel remove --channel-name <CHANNEL_NAME> --dir eap-8Export a server snapshot by using the following command:
$ ./jboss-eap-installation-manager.sh clone export --dir=<directory> --path=<target_archive>NoteAny modifications you have made to configuration files will not be exported.
2.7. Setting non-English localizations for Red Hat JBoss Enterprise Application Platform 8.1 Copy linkLink copied to clipboard!
Use the Red Hat JBoss Enterprise Application Platform 8.1 Installation Manager to support various languages in the user interface. You can set your preferred language by configuring the JAVA_OPTS environment variable to include specific user.language and user.country system properties. This ensures that the Installation Manager interface displays in your chosen language, provided the necessary localization resources are available. If a specific localization is not found, the Installation Manager will default to English.
Prerequisites
- You have access to the JBoss EAP 8.1 Installation Manager.
- You have access to a terminal for Linux/macOS or a command prompt/PowerShell for Windows.
-
You know the two-letter ISO 639-1 language code and the two-letter ISO 3166-1 alpha-2 country code for the localization you want to set, for example,
frfor French,FRfor France.
Procedure
- Open a terminal or command prompt.
Set the
JAVA_OPTSenvironment variable to include the desired language and country codes:Example: To set the localization to French on Linux/macOS
$ export JAVA_OPTS="-Duser.language=fr -Duser.country=FR"Example: To set the localization to German on Windows with Command Prompt
$ set JAVA_OPTS="-Duser.language=de -Duser.country=DE"Example: To set the localization to Japanese on Windows PowerShell
$env:JAVA_OPTS="-Duser.language=ja -Duser.country=JP"Run the Installation Manager. Change to the directory where the Installation Manager executable is located and run it.
For Linux/macOS
$ ./jboss-eap-installation-manager.shFor Windows
$ jboss-eap-installation-manager.batThe installer interface displays in the specified language.
Alternatively, for Linux only, use the system environment variables, which the Java application inherits.
- Open your Linux terminal.
Set the
LANGandLC_ALLenvironment variables to your desired locale:Example: To set the locale to Simplified Chinese
$ export LANG=zh_CN.utf8 $ export LC_ALL=zh_CN.utf8Run the Installation Manager. Change to the directory where the Installation Manager executable is located and run it.
$ ./jboss-eap-installation-manager.shThe output from the installer now attempts to display in the specified language.
Additional resources