2.6. RPM Installation
2.6.1. About JBoss EAP 6 Software Channels Copy linkLink copied to clipboard!
Note
channel was replaced with the term repository. In these instructions only the term channel is used.
Warning
2.6.2. JBoss EAP Channel Naming Convention Copy linkLink copied to clipboard!
jbappplatform-6-ARCHITECTURE-server-6-rpm. Installing JBoss EAP 6.4 on an x86_64 architecture and Red Hat Enterprise Linux 6 would require a subscription to the jbappplatform-6-x86_64-server-6-rpm channel.
jbappplatform-EAP_VERSION-ARCHITECTURE-server-RHEL_VERSION-rpm.
jb-eap-EAP_VERSION-for-rhel-7-server-rpms for x86_64 architecture and jb-eap-EAP_VERSION-for-rhel-7-for-power-rpms for ppc64 architecture
- EAP_VERSION
- This is the major and minor version of JBoss EAP. An EAP_VERSION value of
6.4would install JBoss EAP 6.4, while a value of6would install JBoss EAP 6. - ARCHITECTURE
- This is either
i386,x86_64orppc. - RHEL_VERSION
- This is either
5for Red Hat Enterprise Linux 5,6for Red Hat Enterprise Linux 6 or7for Red Hat Enterprise Linux 7.
2.6.3. How to Subscribe to the JBoss EAP 6 Current Channel Copy linkLink copied to clipboard!
- Ensure that your 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.
- Enter the following command to subscribe to the JBoss EAP 6 current repository:
subscription-manager repos --enable=jb-eap-6-for-rhel-7-server-rpms
subscription-manager repos --enable=jb-eap-6-for-rhel-7-server-rpmsCopy to Clipboard Copied! Toggle word wrap Toggle overflow
- Ensure that your Red Hat Enterprise Linux system is registered to your account using Red Hat Network Classic. For more information, see the this Customer Portal solution: https://access.redhat.com/solutions/11216.
- Enter the following command to subscribe to the JBoss EAP 6 current channel:
rhn-channel --add -c jbappplatform-6-x86_64-server-6-rpm
rhn-channel --add -c jbappplatform-6-x86_64-server-6-rpmCopy to Clipboard Copied! Toggle word wrap Toggle overflow Note
Therhn-channelcommand does not provide an error message if the specified software channel does not exist. Before proceeding, confirm the registration was successful by listing the subscribed channels. To do this, enter the following command:rhn-channel -l
rhn-channel -lCopy to Clipboard Copied! Toggle word wrap Toggle overflow
2.6.4. How To Subscribe to the JBoss EAP 6 Minor Channel Copy linkLink copied to clipboard!
- Ensure that your 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.
- Enter the following command to subscribe to the JBoss EAP 6 minor repository:
subscription-manager repos --enable=jb-eap-6.4-for-rhel-7-server-rpms
subscription-manager repos --enable=jb-eap-6.4-for-rhel-7-server-rpmsCopy to Clipboard Copied! Toggle word wrap Toggle overflow
- Ensure that your Red Hat Enterprise Linux system is registered to your account using Red Hat Network Classic. For more information, see the this Customer Portal solution: https://access.redhat.com/solutions/11216.
- Enter the following command to subscribe to the JBoss EAP 6 minor channel:
rhn-channel --add -c jbappplatform-6.4-x86_64-server-6-rpm
rhn-channel --add -c jbappplatform-6.4-x86_64-server-6-rpmCopy to Clipboard Copied! Toggle word wrap Toggle overflow Note
Therhn-channelcommand does not provide an error message if the specified software channel does not exist. Before proceeding, confirm the registration was successful by listing the subscribed channels. To do this, enter the following command:rhn-channel -l
rhn-channel -lCopy to Clipboard Copied! Toggle word wrap Toggle overflow
2.6.5. Support for Changing Subscription Channels Copy linkLink copied to clipboard!
- Changing from the current channel to a minor channel
- Supported if changing to the latest minor channel.
- Changing from a minor current channel to another minor channel
- Supported if changing to the next minor JBoss EAP version. For example, changing from JBoss EAP 6.3 to JBoss EAP 6.4 is supported, but from JBoss EAP 6.3 to JBoss EAP 6.5 is not supported.
- Changing from a minor channel to the current channel
- Supported if changing from the latest minor channel.
2.6.6. How to Change from the Current Channel to the Minor Channel Copy linkLink copied to clipboard!
current channel and you want to instead switch to the minor channel. Doing so will ensure that the system will only receive updates to the JBoss EAP 6.4 RPMs and it will not be updated to a later version.
current channel and instead subscribe to the minor channel.
yum update
yum update
rhn-channel --remove -c jbappplatform-6-x86_64-server-6-rpm
rhn-channel --remove -c jbappplatform-6-x86_64-server-6-rpm
rhn-channel --add -c jbappplatform-6.4-x86_64-server-6-rpm
rhn-channel --add -c jbappplatform-6.4-x86_64-server-6-rpm
Note
rhn-channel command does not provide an error message if the specified software channel does not exist. Before proceeding, confirm the registration was successful by listing the subscribed channels. To do this, enter the command:
rhn-channel -l
rhn-channel -l
current channel and instead subscribe to the minor channel.
yum update
yum update
subscription-manager repos --disable=jb-eap-6-for-rhel-7-server-rpms --enable=jb-eap-6.4-for-rhel-7-server-rpms
subscription-manager repos --disable=jb-eap-6-for-rhel-7-server-rpms --enable=jb-eap-6.4-for-rhel-7-server-rpms
2.6.7. Install JBoss EAP 6 (Graphical RPM Installation) Copy linkLink copied to clipboard!
Prerequisites:
The Graphical RPM package method of installing JBoss EAP 6 is available for Red Hat Enterprise Linux 5 and Red Hat Enterprise Linux 6. This topic covers the steps required to complete the installation.
Procedure 2.9. Install JBoss EAP 6 (Graphical RPM Installation)
Launch PackageKit
PackageKit is an open source package management software installed as part of Red Hat Enterprise Linux. On the target machine launch PackageKit by selecting. - Type
jboss-eap6in the search box and then press the button. You will be presented with the JBoss EAP 6 package in the result box. - Select the JBoss EAP 6 package and press the button. See figure below.
Figure 2.2. JBoss EAP 6 PackageKit Install
- Follow the rest of the steps to install JBoss EAP 6 on your target machine.
The installation is complete and JBoss EAP 6 is installed in your target machine.
2.6.8. Install JBoss EAP 6 (Text-based RPM Installation) Copy linkLink copied to clipboard!
Prerequisites:
The RPM package method of installing JBoss EAP 6 is appropriate for Red Hat Enterprise Linux 5, Red Hat Enterprise Linux 6, and Red Hat Enterprise Linux 7. This topic covers the steps required to install an instance using the command line.
Procedure 2.10. Install JBoss EAP 6 (Text-based RPM Installation)
Install the RPM packages
Use YUM to install the default JBoss EAP 6 group package by using thegroupinstallcommand.yum groupinstall jboss-eap6
yum groupinstall jboss-eap6Copy to Clipboard Copied! Toggle word wrap Toggle overflow Configure initialization options.
The RPM install contains initialization scripts for launching the server. The configuration for the initialization scripts are contained in several additional files. Refer to Section A.4, “RPM Installation Configuration Files for JBoss EAP 6” for details about these files and the options contained within.
The installation is complete. The default EAP_HOME path for the RPM installation is /usr/share/jbossas. Refer to Section A.3, “RPM Package List for JBoss EAP 6” for a complete list of all the packages installed.
2.6.9. Configure RPM Service Properties Copy linkLink copied to clipboard!
- Specify the server configuration file.
- When starting a standalone server, the
standalone.xmlfile is used by default. When running in a managed domain, thehost.xmlfile is used by default. You can start JBoss EAP with a different configuration file by setting theJBOSS_SERVER_CONFIGproperty in the appropriate RPM configuration file, for example,/etc/sysconfig/jbossas. See Section A.4, “RPM Installation Configuration Files for JBoss EAP 6” for the list of RPM configuration files.JBOSS_SERVER_CONFIG="standalone-full-ha.xml"
JBOSS_SERVER_CONFIG="standalone-full-ha.xml"Copy to Clipboard Copied! Toggle word wrap Toggle overflow
- Set JVM options or Java properties.
- You can specify JVM options or Java properties to pass into the JBoss EAP startup script by editing the startup configuration file. This file is
EAP_HOME/bin/standalone.conffor a standalone server orEAP_HOME/bin/domain.conffor a managed domain. The below example configures the heap size and binds the JBoss EAP management interfaces to an IP address.JAVA_OPTS="$JAVA_OPTS -Xms2048m -Xmx2048m" JAVA_OPTS="$JAVA_OPTS -Djboss.bind.address.management=192.168.0.1"
JAVA_OPTS="$JAVA_OPTS -Xms2048m -Xmx2048m" JAVA_OPTS="$JAVA_OPTS -Djboss.bind.address.management=192.168.0.1"Copy to Clipboard Copied! Toggle word wrap Toggle overflow