


先日、Red Hat Enterprise Linux 8.0をインストールしたのですが、コンソールに下記のメッセージが表示されていました。
Activate the web console with: systemctl enable –now cockpit.socket
cockpit?? リリースノートを確認すると記載がありました。
https://access.redhat.com/documentation/ja-jp/red_hat_enterprise_linux/8/html-single/8.0_release_notes/index
Web コンソールがデフォルトで利用可能
RHEL 8 Web コンソールのパッケージ (Cockpit とも呼ばれます) は、Red Hat Enterprise Linux のデフォルトリポジトリーに同梱されるようになったため、登録済みの RHEL 8 システムにすぐにインストールできます。
さらに、RHEL 8 の最小インストール以外のインストールでは、Web コンソールが自動的にインストールされ、コンソールに必要なファイアウォールポートが自動的に開くようになりました。ログイン前に、Web コンソールを有効にしたり、Web コンソールにアクセスしたりする方法を示すシステムメッセージも追加されました。
確認してみます。
- リポジトリ
- ファイアウォール
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
[root@rhel8 ~]# dnf info cockpit Updating Subscription Management repositories. Unable to read consumer identity This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register. Installed Packages Name : cockpit Version : 185.1 Release : 1.el8_0 Arch : x86_64 Size : 51 k Source : cockpit-185.1-1.el8_0.src.rpm Repo : @System From repo : rhel-8-for-x86_64-baseos-rpms Summary : Web Console for Linux servers URL : https://cockpit-project.org/ License : LGPLv2+ Description : The Cockpit Web Console enables users to administer GNU/Linux servers using a : web browser. : : It offers network configuration, log inspection, diagnostic reports, SELinux : troubleshooting, interactive command-line sessions, and more. [root@rhel8 ~]# rpm -qa | grep cockpit | sort cockpit-185.1-1.el8_0.x86_64 cockpit-bridge-185.1-1.el8_0.x86_64 cockpit-packagekit-184.1-1.el8.noarch cockpit-system-185.1-1.el8_0.noarch cockpit-ws-185.1-1.el8_0.x86_64 subscription-manager-cockpit-1.23.8-35.el8.noarch |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
[root@rhel8 ~]# firewall-cmd --list-all public (active) target: default icmp-block-inversion: no interfaces: ens160 sources: services: cockpit dhcpv6-client ssh ports: protocols: masquerade: no forward-ports: source-ports: icmp-blocks: rich rules: |
有効にしてアクセスしてみます。ポートは9090になります。
1 2 |
[root@rhel8 ~]# systemctl enable --now cockpit.socket Created symlink /etc/systemd/system/sockets.target.wants/cockpit.socket -> /usr/lib/systemd/system/cockpit.socket. |
個人的には使うことは無さそうですが、サーバの状態をWebで確認できるのは良いかも。
ちなみにポート9090の変更方法は下記にありました。
How to change cockpit port from 9090 to some other port in Red Hat Enterprise Linux ?
https://access.redhat.com/solutions/2761591