Cockpit 管理系统安装

Cockpit 管理系统安装

一、安装目的

  • 掌握 Linux 系统下 Cockpit 管理工具的安装与配置方法。
  • 熟悉通过 Web 界面管理服务器资源(如系统监控、网络配置、容器管理等)的基本操作。
  • 验证 Cockpit 的跨平台兼容性与实时监控功能。

二、安装步骤

1. 安装 Cockpit 服务

步骤1

安装Cockpit。

dnf install -y cockpit

步骤2
启动Cockpit 服务,并设置开启自启。

systemctl enable --now cockpit.socket

2.设置防火墙规则

步骤1

防火墙设置,添加Cockpit 服务,加载后可从其他主机访问。

firewall-cmd --permanent --zone=public--add-service=cockpit

image

步骤2

加载规则。

firewall-cmd --reload

image

3. 访问 Cockpit Web 界面

Cockpit 启动并运行后,可以在主流 Web 浏览器(包括 Chrome 和 Microsoft Edge、Firefox)访问您的服务器。启动浏览器并访问网址:https://ipaddress:9090 (ipaddress 为 linux 服务器实际地址)。

这样以来Cockpit管理系统就可以使用了。

6 个赞