更改

跳转至: 导航搜索

在 CentOS 8上安装及使用 Cockpit

删除1,875字节, 2022年3月22日 (二) 17:31
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 服务: 12[root@linuxtechi ~]# systemctl start cockpit.socket[root@linuxtechi ~]# systemctl enable cockpit.socket使用以下命令在系统防火墙中允许 Cockpit 端口: 12[root@linuxtechi ~]# firewall-cmd --permanent --add-service=cockpit[root@linuxtechi ~]# firewall-cmd --reload验证 cockpit 服务是否已启动和运行,执行以下命令: 12345[root@linuxtechi ~]# systemctl status cockpit.socket[root@linuxtechi ~]# ss -tunlp | grep cockpit[root@linuxtechi ~]# ps auxf|grep cockpitcockpit-status-centos8-rhel8cockpit-status-centos8-rhel8  在 CentOS 8/RHEL 8 上访问 Cockpit 正如我们在上面命令的输出中看到的,cockpit 正在监听 tcp 9090 端口,打开你的 Web 浏览器并输入 url:https://<Your-CentOS8/RHEL8-System-IP>:9090。e
匿名用户

导航菜单