1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

jboss8をrpmでインストールしてみよう

1
Last updated at Posted at 2025-11-23

準備

# cat /etc/redhat-release
Red Hat Enterprise Linux release 9.4 (Plow)

firewalldを停止する
SElinuxを停止する

systemctl stop firewalld
systemctl disable firewalld

grubby --update-kernel ALL --args selinux=0
shutdown -r now
getenforce ## 「Disabled」になっていること確認

サブスクリプション登録

## RHELに登録しているIDとパスワードを入力してください
# subscription-manager register --username ID --password PASS

サポートは受けません宣言

subscription-manager service-level --set="Self-Support"

不要なroleがあれば外す

subscription-manager syspurpose role --unset
# subscription-manager list --consumed
使用済みサブスクリプションプールは見つかりませんでした。

# subscription-manager syspurpose service-level --list
+-------------------------------------------+
           利用可能なサービスレベル
+-------------------------------------------+
Self-Support

repo追加

subscription-manager repos --enable=jb-eap-8.0-for-rhel-9-x86_64-rpms

ちなみに無効の方法

# subscription-manager repos --disable=jb-eap-8.0-for-rhel-9-x86_64-rhui-rpms
リポジトリー 'jb-eap-8.0-for-rhel-9-x86_64-rhui-rpms' は、このシステムに対して無効になりました。

追加されたことを確認

# dnf repolist
サブスクリプション管理リポジトリーを更新しています。
repo id                                                        repo の名前
jb-eap-8.0-for-rhel-9-x86_64-rpms                              JBoss Enterprise Application Platform 8.0 (RHEL 9 x86_64) (RPMs)
rhel-9-for-x86_64-appstream-rpms                               Red Hat Enterprise Linux 9 for x86_64 - AppStream (RPMs)
rhel-9-for-x86_64-baseos-rpms                                  Red Hat Enterprise Linux 9 for x86_64 - BaseOS (RPMs)


cat /etc/yum.repos.d/redhat.repo

jbossインストール実行

dnf groupinstall jboss-eap8
## JDK17がデフォルトではインストールされます。

今回はJDK21にしたいので

dnf groupinstall jboss-eap8-jdk21

ちなみにサービスファイルは以下にあります。

# find / -iname "*\.service" | grep -i eap
/usr/lib/systemd/system/eap8-domain.service
/usr/lib/systemd/system/eap8-standalone.service

複数インスタンス構成にしたい場合

standaloneをコピーすればいいと思っていたけど
残念ながら以下のようになっていた。。。


[root@rhelsub999 wildfly]# ll standalone/
合計 0
lrwxrwxrwx 1 root root 35 11月 19 02:58 configuration -> /etc/opt/rh/eap8/wildfly/standalone
lrwxrwxrwx 1 root root 44 11月 19 02:58 data -> /var/opt/rh/eap8/lib/wildfly/standalone/data
lrwxrwxrwx 1 root root 51 11月 19 02:58 deployments -> /var/opt/rh/eap8/lib/wildfly/standalone/deployments
lrwxrwxrwx 1 root root 43 11月 19 02:58 lib -> /var/opt/rh/eap8/lib/wildfly/standalone/lib
lrwxrwxrwx 1 root root 39 11月 19 02:58 log -> /var/opt/rh/eap8/log/wildfly/standalone
lrwxrwxrwx 1 root root 45 11月 19 02:58 tmp -> /var/opt/rh/eap8/cache/wildfly/standalone/tmp

ではそれぞれコマンド作成でインスタンス領域作成

#インスタンス格納に移動して
[root@rhelsub999 instance]# cd instance2
[root@rhelsub999 instance2]# mkdir configuration
[root@rhelsub999 instance2]# mkdir log
[root@rhelsub999 instance2]# cp -pi /etc/opt/rh/eap8/wildfly/standalone/* configuration/
[root@rhelsub153 instance2]# cp -pr /var/opt/rh/eap8/lib/wildfly/standalone/data ./

[root@rhelsub999 instance2]# cp -pr /var/opt/rh/eap8/lib/wildfly/standalone/deployments/ ./

[root@rhelsub999 instance2]# cp -pr /var/opt/rh/eap8/lib/wildfly/standalone/lib/ ./

[root@rhelsub999 instance2]# cp -pr /var/opt/rh/eap8/cache/wildfly/standalone/tmp ./


ポートバッティング回避のため以下の設定を実施

vi standalone.xml

## わかりやすく100ずつがいいかも。200ずつでもいいかな
<socket-binding-group name="standard-sockets" default-interface="public" port-offset="${jboss.socket.binding.port-offset:200}">

権限変更

cd /opt
chown -R jboss:jboss rh/

サービスファイル変更


1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?