4.2.3. 在 Red Hat Enterprise Linux 主机上安装 Cockpit

您可以安装 Cockpit 来监控主机的资源并执行管理任务。

流程

  1. 安装仪表板软件包:

    # yum install cockpit-ovirt-dashboard
  2. 启用并启动 cockpit.socket 服务:

    # systemctl enable cockpit.socket
    # systemctl start cockpit.socket
  3. 检查 Cockpit 是否在防火墙中是活跃的服务:

    # firewall-cmd --list-services

    您应看到 Cockpit 列出。如果没有,使用 root 权限输入以下内容,将 cockpit 添加为服务到防火墙:

    # firewall-cmd --permanent --add-service=cockpit

    使用 --permanent 选项可在重新启动后保持 cockpit 服务处于活动状态。

您可以在 https://HostFQDNorIP:9090 上登录到 Cockpit Web 界面。