配置RHEL8的 Web Console

参考自:

https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html-single/managing_systems_using_the_web_console/index#installing-the-web-console_getting-started-with-the-rhel-8-web-console

RHEL8的 Web Console 是RHEL8的“OEM”,可以在浏览器中对系统进行监控和管理。

第一:启动cockpit 服务并配置firwalld

[root@rhel8server1 ~]# systemctl enable --now cockpit.socket
Created symlink /etc/systemd/system/sockets.target.wants/cockpit.socket → /usr/lib/systemd/system/cockpit.socket.
[root@rhel8server1 ~]# systemctl status cockpit.socket
● cockpit.socket - Cockpit Web Service Socket
   Loaded: loaded (/usr/lib/systemd/system/cockpit.socket; enabled; vendor preset: disabled)
   Active: active (listening) since Mon 2019-06-03 18:38:48 EDT; 3s ago
     Docs: man:cockpit-ws(8)
   Listen: [::]:9090 (Stream)
  Process: 9982 ExecStartPost=/bin/ln -snf active.motd /run/cockpit/motd (code=exited, status=0/SUCCESS)
  Process: 9974 ExecStartPost=/usr/share/cockpit/motd/update-motd  localhost (code=exited, status=0/SUCCESS)
    Tasks: 0 (limit: 11365)
   Memory: 1.8M
   CGroup: /system.slice/cockpit.socket

Jun 03 18:38:48 rhel8server1 systemd[1]: Starting Cockpit Web Service Socket.
Jun 03 18:38:48 rhel8server1 systemd[1]: Listening on Cockpit Web Service Socket.
[root@rhel8server1 ~]# systemctl status firewalld
● firewalld.service - firewalld - dynamic firewall daemon
   Loaded: loaded (/usr/lib/systemd/system/firewalld.service; enabled; vendor preset: enabled)
   Active: active (running) since Mon 2019-06-03 17:22:32 EDT; 1h 16min ago
     Docs: man:firewalld(1)
 Main PID: 1003 (firewalld)
    Tasks: 2 (limit: 11365)
   Memory: 14.7M
   CGroup: /system.slice/firewalld.service
           └─1003 /usr/libexec/platform-python -s /usr/sbin/firewalld --nofork --nopid

Jun 03 17:22:31 rhel8server1 systemd[1]: Starting firewalld - dynamic firewall daemon...
Jun 03 17:22:32 rhel8server1 systemd[1]: Started firewalld - dynamic firewall daemon.
[root@rhel8server1 ~]# firewall-cmd --add-service=cockpit --permanent
Warning: ALREADY_ENABLED: cockpit
success
[root@rhel8server1 ~]# firewall-cmd --reload
success
[root@rhel8server1 ~]#

第二:使用下列浏览器之一登录登录网址为:https://rhel8的ip地址:9090/system

  • Mozilla Firefox 52 and later
  • Google Chrome 57 and later
  • Microsoft Edge 16 and later

第三:登录后的截图如下:

配置RHEL8的 Web Console_第1张图片

 

开启这个服务的自动启动之后,在xshell登录此台机器时,显示如下:
 

Xshell for Xmanager Enterprise 5 (Build 0547)
Copyright (c) 2002-2015 NetSarang Computer, Inc. All rights reserved.

Type `help' to learn how to use Xshell prompt.
[c:\~]$ 

Connecting to 192.168.80.8:22...
Connection established.
To escape to local shell, press 'Ctrl+Alt+]'.

Web console: https://rhel8server1:9090/ or https://192.168.80.8:9090/

Last login: Fri Jun 14 18:26:08 2019 from 192.168.80.1
[root@rhel8server1 ~]# 

 

你可能感兴趣的:(RHEL8)