Fedora
安装
sudo dnf install cockpit
开启cockpit:
sudo systemctl enable --now cockpit.socket
加入防火墙策略
sudo firewall-cmd --add-service=cockpit
sudo firewall-cmd --add-service=cockpit --permanent
Red Hat Enterprise Linux
Red Hat Enterprise Linux 7 以上.
安装cockpit:
sudo yum install cockpit
开启 cockpit:
sudo systemctl enable --now cockpit.socket
加入防火墙
sudo firewall-cmd --add-service=cockpit
sudo firewall-cmd --add-service=cockpit --permanent
CentOS
CentOS 7.x:
安装cockpit:
sudo yum install cockpit
开启cockpit:
sudo systemctl enable --now cockpit.socket
加入防火墙策略:
sudo firewall-cmd --permanent --zone=public --add-service=cockpit
sudo firewall-cmd --reload
Debian
Debian 8 (Jessie) 和 9 (Stretch).
Debian 9:
echo 'deb http://deb.debian.org/debian stretch-backports main' > \
/etc/apt/sources.list.d/backports.list
apt-get update
Debian 8:
echo 'deb http://deb.debian.org/debian jessie-backports-sloppy main' > \
/etc/apt/sources.list.d/backports.list
apt-get update
安装package:
sudo apt-get install cockpit
Ubuntu
系统16.04 LTS 以上
安装package:
sudo apt-get install cockpit
然后在浏览器输入IP:9090就可以访问了,输入用户名和密码就可以管理集群了,包括虚拟机、Docker等

本文详细介绍如何在Fedora、RedHatEnterpriseLinux、CentOS、Debian和Ubuntu上安装和配置Cockpit,包括必要的软件包安装、服务启动及防火墙策略设置。
988

被折叠的 条评论
为什么被折叠?



