First you need to add JBoss EAP 7 subscription. To do that you need the pool id for your subscription. To find that out list all available subscription and then look for JBoss subscription.
subscription-manager list --available --all > /tmp/subscription.txt
less /tmp/subscription.txt
Subscription Name: JBoss ....
Provides: Red Hat OpenShift Enterprise JBoss EAP add-on Beta
Red Hat JBoss A-MQ Clients
Red Hat Single Sign-On
Red Hat OpenShift Enterprise JBoss EAP add-on
JBoss Enterprise Application Platform
Red Hat JBoss Core Services
Red Hat JBoss Data Grid
JBoss Enterprise Web Server
Red Hat JBoss A-MQ Interconnect
...
Pool ID: XXXXXXXXXXXXXX
...
Now add that subscription with above pool id.
subscription-manager attach --pool=XXXXXXXXXXXXXX
Then you need to enable the JBoss EAP 7 repo. There are multiple repos. Here we wil run JBoss EAP 7 on RHEL 7 and for that there are two repos:
- Current JBoss EAP 7 Repository (repo id: jb-eap-7-for-rhel-7-server-rpms)
- Minor JBoss EAP 7 Repository (repo id: jb-eap-7.[MINOR_VERSION]-for-rhel-7-server-rpms, where MINOR_VERSION is the wanted lock down version, i.e. 0)
Recommended. Always use the latest.
Only use a specific minor version and never upgrade to next minor, e.g. 7.1, 7.2, etc.
So to use the latest version enable repo by
subscription-manager repos --enable=jb-eap-7-for-rhel-7-server-rpms
Finally verify that JBoss EAP 7 repo had been enabled with yum.
yum repolist
repo id repo name
jb-eap-7-for-rhel-7-server-rpms/7Server/x86_64 JBoss Enterprise Application Platform 7 (RHEL 7 Server) (RPMs)
rhel-7-server-rpms/7Server/x86_64 Red Hat Enterprise Linux 7 Server (RPMs)
Now we install JBoss EAP 7 as a RPM group. To list all
yum grouplist
Available Environment Groups:
Minimal Install
...
Available Groups:
...
JBoss EAP 7
...
And to also list hidden groups.
yum grouplist hidden
Before you install JBoss EAP 7, you want to install java (JRE) in a controlled way, so it is not transative installed.
yum install java-1.8.0-openjdk
Then install JBoss EAP 7 RPM group
yum groupinstall "JBoss EAP 7"
Finally auto start jboss on reboot
systemctl enable eap7-standalone
And then start it
systemctl enable eap7-standalone
JBoss EAP 7 binds default to any network interface.
netstat -tulnp | grep 8080
tcp 0 0 0.0.0.0:8080 0.0.0.0:* LISTEN 2210/java
And if this is a remote machine, you need to open port 8080 in local firewall.
firewall-cmd --add-port 8080/tcp --zone public --permanent
firewall-cmd --reload
firewall-cmd --list-all-zones
JBOSS_HOME: /opt/rh/eap7/root/usr/share/wildfly/
A note about jboss home long path. This is due to docker and to be able to ship different software version on same machine, then you cannot install software in default directory, i.e. jboss default directory is /usr/share/wildfly/. To read more, please see Red Hat Software Collections (RHSCL).
ll /opt/rh/eap7/root/usr/share/wildfly/
total 40
drwxrwxr-x. 2 root root 27 17 maj 21.59 appclient
drwxr-xr-x. 3 root root 4096 17 maj 21.59 bin
drwxrwxr-x. 2 root root 52 17 maj 21.59 docs
drwxr-xr-x. 2 root root 76 17 maj 21.59 domain
-rw-rw-r--. 1 root root 419 21 feb 10.15 JBossEULA.txt
lrwxrwxrwx. 1 root root 50 17 maj 21.59 jboss-modules.jar -> /opt/rh/eap7/root/usr/share/java/jboss-modules.jar
-rw-rw-r--. 1 root root 26530 21 feb 10.15 LICENSE.txt
drwxrwxr-x. 3 root root 20 17 maj 21.59 modules
drwxr-xr-x. 2 root root 91 17 maj 21.59 standalone
-rw-rw-r--. 1 root root 65 21 feb 10.15 version.txt
drwxrwxr-x. 4 root root 158 17 maj 21.59 welcome-content
# ll /opt/rh/eap7/root/usr/share/wildfly/standalone/
total 0
lrwxrwxrwx. 1 root root 35 17 maj 21.59 configuration -> /etc/opt/rh/eap7/wildfly/standalone
lrwxrwxrwx. 1 root root 44 17 maj 21.59 data -> /var/opt/rh/eap7/lib/wildfly/standalone/data
lrwxrwxrwx. 1 root root 51 17 maj 21.59 deployments -> /var/opt/rh/eap7/lib/wildfly/standalone/deployments
lrwxrwxrwx. 1 root root 43 17 maj 21.59 lib -> /var/opt/rh/eap7/lib/wildfly/standalone/lib
lrwxrwxrwx. 1 root root 39 17 maj 21.59 log -> /var/opt/rh/eap7/log/wildfly/standalone
lrwxrwxrwx. 1 root root 45 17 maj 21.59 tmp -> /var/opt/rh/eap7/cache/wildfly/standalone/tmp
No comments:
Post a Comment