偷偷摘套内射激情视频,久久精品99国产国产精,中文字幕无线乱码人妻,中文在线中文a,性爽19p

如何在CentOS 8/RHEL 8上安裝和使用Cockpit

系統(tǒng) Linux
Cockpit 是一個基于 Web 的服務(wù)器管理工具,可用于 CentOS 和 RHEL 系統(tǒng)。在本文中,我們將演示如何在 CentOS 8 和 RHEL 8 中安裝和設(shè)置 Cockpit。

[[278959]]

Cockpit 是一個基于 Web 的服務(wù)器管理工具,可用于 CentOS 和 RHEL 系統(tǒng)。最近發(fā)布的 CentOS 8 和 RHEL 8,其中 cockpit 是默認的服務(wù)器管理工具。它的軟件包在默認的 CentOS 8 和 RHEL 8 倉庫中就有。Cockpit 是一個有用的基于 Web 的 GUI 工具,系統(tǒng)管理員可以通過該工具監(jiān)控和管理 Linux 服務(wù)器,它還可用于管理服務(wù)器、容器、虛擬機中的網(wǎng)絡(luò)和存儲,以及檢查系統(tǒng)和應(yīng)用的日志。

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

在 CentOS 8/RHEL 8 上安裝和設(shè)置Cockpit

登錄你的 CentOS 8/RHEL 8,打開終端并執(zhí)行以下 dnf 命令:

  1. [root@linuxtechi ~]# dnf install cockpit -y

運行以下命令啟用并啟動 cockpit 服務(wù):

  1. [root@linuxtechi ~]# systemctl start cockpit.socket
  2. [root@linuxtechi ~]# systemctl enable cockpit.socket

使用以下命令在系統(tǒng)防火墻中允許 Cockpit 端口:

  1. [root@linuxtechi ~]# firewall-cmd --permanent --add-service=cockpit
  2. [root@linuxtechi ~]# firewall-cmd --reload

驗證 cockpit 服務(wù)是否已啟動和運行,執(zhí)行以下命令:

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

 

如何在CentOS 8/RHEL 8上安裝和使用Cockpit

cockpit-status-centos8-rhel8

在 CentOS 8/RHEL 8 上訪問 Cockpit

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

 

如何在CentOS 8/RHEL 8上安裝和使用Cockpit

CentOS8-cockpit-login-screen

RHEL 8 中的 Cockpit 登錄頁面:

 

如何在CentOS 8/RHEL 8上安裝和使用Cockpit

RHEL8-Cockpit-Login-Screen

使用有管理員權(quán)限的用戶名,或者我們也可以使用 root 用戶的密碼登錄。如果要將管理員權(quán)限分配給任何本地用戶,請執(zhí)行以下命令:

  1. [root@linuxtechi ~]# usermod -G wheel pkumar

這里 pkumar 是我的本地用戶,

在輸入用戶密碼后,選擇 “Reuse my password for privileged tasks”,然后單擊 “Log In”,然后我們看到以下頁面:

 

如何在CentOS 8/RHEL 8上安裝和使用Cockpit

cockpit-dashboard-centos8

在左側(cè)欄上,我們可以看到可以通過 cockpit GUI 監(jiān)控和配置的內(nèi)容,

假設(shè)你要檢查 CentOS 8/RHEL 8 中是否有任何可用更新,請單擊 “System Updates”:

 

如何在CentOS 8/RHEL 8上安裝和使用Cockpit

Software-Updates-Cockpit-GUI-CentOS8-RHEL8

要安裝所有更新,點擊 “Install All Updates”:

 

如何在CentOS 8/RHEL 8上安裝和使用Cockpit

Install-Software-Updates-CentOS8-RHEL8

如果想要修改網(wǎng)絡(luò)并要添加 Bond 接口和網(wǎng)橋,請單擊 “Networking”:

 

如何在CentOS 8/RHEL 8上安裝和使用Cockpit

Networking-Cockpit-Dashboard-CentOS8-RHEL8

如上所見,我們有創(chuàng)建 Bond 接口、網(wǎng)橋和 VLAN 標記接口的選項。

假設(shè)我們想創(chuàng)建一個 br0 網(wǎng)橋,并要為它添加 enp0s3 端口,單擊 “Add Bridge”:

將網(wǎng)橋名稱指定為 br0,將端口指定為 enp0s3,然后單擊“Apply”。

 

如何在CentOS 8/RHEL 8上安裝和使用Cockpit

Add-Bridge-Cockpit-CentOS8-RHEL8

在下個頁面,我們將看到該網(wǎng)橋處于活動狀態(tài),并且獲得了與 enp0s3 接口相同的 IP:

 

如何在CentOS 8/RHEL 8上安裝和使用Cockpit

Bridge-Details-Cockpit-Dashboard-CentOS8-RHEL8

如果你想檢查系統(tǒng)日志,單擊 “Logs”,我們可以根據(jù)嚴重性查看日志:

如何在CentOS 8/RHEL 8上安裝和使用Cockpit

System-Logs-Cockpit-Dashboard-CentOS8-RHEL8

本文就是這些了,類似地,系統(tǒng)管理員可以使用 cockpit 的其他功能來監(jiān)控和管理 CentOS 8 和 RHEL 8 服務(wù)器。如果這些步驟可以幫助你在 Linux 服務(wù)器上設(shè)置 cockpit,請在下面的評論欄分享你的反饋和意見。 

 

責任編輯:龐桂玉 來源: Linux中國
相關(guān)推薦

2020-03-02 14:06:54

CentOS 8FFmpegLinux

2019-12-02 11:50:09

CentOS 8VirtualBoxLinux

2019-11-14 09:20:15

CentOS 8RHEL 8Nagios Core

2023-03-16 08:55:51

RHEL 8MiniKube開源

2019-10-14 15:00:12

Centos 8 RHEL 8VNC

2017-04-24 18:10:27

DrupalCentOSFedora

2019-12-02 15:45:53

CentOS 8AnsibleLinux

2019-11-05 11:20:36

CentOS 8RHEL 8Linux

2023-05-05 16:20:15

2023-05-13 17:32:51

2020-10-29 09:40:21

PostgreSQLpgAdmin數(shù)據(jù)庫

2017-04-11 13:20:06

CentOSRHELFedora

2019-09-27 08:52:12

RHELCentOSElastic sta

2012-07-03 10:09:36

windows 8XenServer

2019-11-21 08:50:54

CentOS 8Postfix郵件服務(wù)器

2015-12-21 13:19:23

CentosRHEL 6.XWetty

2022-04-28 18:24:36

CentOSLinux

2019-10-28 14:38:36

RsyslogCentOS8開源

2013-01-04 17:16:15

2013-04-07 15:14:41

點贊
收藏

51CTO技術(shù)棧公眾號