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等
————————————————
版權聲明:本文爲CSDN博主「之芫」的原創文章,遵循CC 4.0 BY-SA版權協議,轉載請附上原文出處鏈接及本聲明。
原文鏈接:https://blog.csdn.net/Magic_Ninja/article/details/90258621