"在 CentOS 8上安装及使用 Cockpit" 修訂間的差異

出自 YTYZX有图有真相的百科
前往: 導覽搜尋
(e)
(恢复45.77.171.9讨论)的编辑至Ytyzx的最后版本)
 
行 1: 行 1:
e
+
Cockpit 是一个基于 Web 的服务器管理工具,可用于 CentOS 和 RHEL 系统。最近发布的 CentOS 8 和 RHEL 8,其中 cockpit 是默认的服务器管理工具。这篇文章主要介绍了在 CentOS 8/RHEL 8 上安装和使用 Cockpit的方法,需要的朋友可以参考下
 +
Cockpit 是一个基于 Web 的服务器管理工具,可用于 CentOS 和 RHEL 系统。最近发布的 CentOS 8 和 RHEL 8,其中 cockpit 是默认的服务器管理工具。它的软件包在默认的 CentOS 8 和 RHEL 8 仓库中就有。Cockpit 是一个有用的基于 Web 的 GUI 工具,系统管理员可以通过该工具监控和管理 Linux 服务器,它还可用于管理服务器、容器、虚拟机中的网络和存储,以及检查系统和应用的日志。
 +
 
 +
在本文中,我们将演示如何在 CentOS 8 和 RHEL 8 中安装和设置 Cockpit。
 +
 
 +
在 CentOS 8/RHEL 8 上安装和设置Cockpit
 +
登录你的 CentOS 8/RHEL 8,打开终端并执行以下 dnf 命令:
 +
 
 +
1
 +
[root@linuxtechi ~]# dnf install cockpit -y
 +
运行以下命令启用并启动 cockpit 服务:
 +
 
 +
1
 +
2
 +
[root@linuxtechi ~]# systemctl start cockpit.socket
 +
[root@linuxtechi ~]# systemctl enable cockpit.socket
 +
使用以下命令在系统防火墙中允许 Cockpit 端口:
 +
 
 +
1
 +
2
 +
[root@linuxtechi ~]# firewall-cmd --permanent --add-service=cockpit
 +
[root@linuxtechi ~]# firewall-cmd --reload
 +
验证 cockpit 服务是否已启动和运行,执行以下命令:
 +
 
 +
1
 +
2
 +
3
 +
4
 +
5
 +
[root@linuxtechi ~]# systemctl status cockpit.socket
 +
[root@linuxtechi ~]# ss -tunlp | grep cockpit
 +
[root@linuxtechi ~]# ps auxf|grep cockpit
 +
cockpit-status-centos8-rhel8
 +
cockpit-status-centos8-rhel8
 +
 
 +
 
 +
在 CentOS 8/RHEL 8 上访问 Cockpit
 +
 
 +
正如我们在上面命令的输出中看到的,cockpit 正在监听 tcp 9090 端口,打开你的 Web 浏览器并输入 url:https://<Your-CentOS8/RHEL8-System-IP>:9090。

於 2022年3月24日 (四) 20:49 的最新修訂

Cockpit 是一個基於 Web 的服務器管理工具,可用於 CentOS 和 RHEL 系統。最近發布的 CentOS 8 和 RHEL 8,其中 cockpit 是默認的服務器管理工具。這篇文章主要介紹了在 CentOS 8/RHEL 8 上安裝和使用 Cockpit的方法,需要的朋友可以參考下 Cockpit 是一個基於 Web 的服務器管理工具,可用於 CentOS 和 RHEL 系統。最近發布的 CentOS 8 和 RHEL 8,其中 cockpit 是默認的服務器管理工具。它的軟件包在默認的 CentOS 8 和 RHEL 8 倉庫中就有。Cockpit 是一個有用的基於 Web 的 GUI 工具,系統管理員可以通過該工具監控和管理 Linux 服務器,它還可用於管理服務器、容器、虛擬機中的網絡和存儲,以及檢查系統和應用的日誌。

在本文中,我們將演示如何在 CentOS 8 和 RHEL 8 中安裝和設置 Cockpit。

在 CentOS 8/RHEL 8 上安裝和設置Cockpit 登錄你的 CentOS 8/RHEL 8,打開終端並執行以下 dnf 命令:

1 [root@linuxtechi ~]# dnf install cockpit -y 運行以下命令啟用並啟動 cockpit 服務:

1 2 [root@linuxtechi ~]# systemctl start cockpit.socket [root@linuxtechi ~]# systemctl enable cockpit.socket 使用以下命令在系統防火牆中允許 Cockpit 端口:

1 2 [root@linuxtechi ~]# firewall-cmd --permanent --add-service=cockpit [root@linuxtechi ~]# firewall-cmd --reload 驗證 cockpit 服務是否已啟動和運行,執行以下命令:

1 2 3 4 5 [root@linuxtechi ~]# systemctl status cockpit.socket [root@linuxtechi ~]# ss -tunlp | grep cockpit [root@linuxtechi ~]# ps auxf|grep cockpit cockpit-status-centos8-rhel8 cockpit-status-centos8-rhel8


在 CentOS 8/RHEL 8 上訪問 Cockpit

正如我們在上面命令的輸出中看到的,cockpit 正在監聽 tcp 9090 端口,打開你的 Web 瀏覽器並輸入 url:https://<Your-CentOS8/RHEL8-System-IP>:9090。