有台服务器装了centos8,默认开启的cockpit挺不错,于是搜集了一下不同Linux发行版安装cockpit的方式。除了cockpit以外,还有一些扩展功能比如cockpit-docker、cockpit-storaged、cockpit-kubernetes、cockpit-ws
、cockpit-machines
等。
一、Ubuntu
系统16.04 LTS 以上,安装命令:sudo apt-get install cockpit
;
二、CentOS/Red Hat Enterprise Linux
1.sudo yum install cockpit
2.sudo systemctl enable --now cockpit.socket
3.sudo firewall-cmd --permanent --zone=public --add-service=cockpit
4.sudo firewall-cmd --reload
三、Debian
对于8:echo 'deb http://deb.debian.org/debian jessie-backports-sloppy main' > /etc/apt/sources.list.d/backports.list && apt-get update
对于9:echo 'deb http://deb.debian.org/debian stretch-backports main' > /etc/apt/sources.list.d/backports.list && apt-get update
对于10:sudo apt install cockpit
四、Fedora
1.sudo dnf install cockpit
2.sudo systemctl enable --now cockpit.socket
3.sudo firewall-cmd --add-service=cockpit
4.sudo firewall-cmd --add-service=cockpit --permanent
个人常用的发行版为Ubuntu server,以下为安装完后的截图:
