Cockpit是一款自由开源的服务器管理软件,可以通过Web前端界面轻松地管理GNU/Linux服务器,包括:系统、日志、存储、网络、容器、账户、服务、内核转储、软件更新和终端等方面内容。

1、关闭firewalldSELinux

2、安装cockpit# yum -y install cockpit

3、启动cockpit# systemctl start cockpit.service  # ss -tunlp | grep -w :9090

4、配置cockpit开机自启:# systemctl enable cockpit.socket

5、浏览器中访问cockpit web界面:http://192.168.1.146:9090

6、输入服务器192.168.1.146的系统用户名和密码登录cockpit仪表板:

7、安装cockpit扩展模块:

# yum list cockpit*

# yum -y install cockpit-composer cockpit-dashboard cockpit-doc cockpit-docker cockpit-kubernetes cockpit-machines cockpit-machines-ovirt cockpit-packagekit cockpit-pcp cockpit-storaged cockpit-subscriptions cockpit-tests

备注:剩余的cockpit-kdumpcockpit-networkmanagercockpit-selinuxcockpit-sosreport四个软件包安装时分别会提示如下错误信息,所以上述四个软件包未安装

file /usr/share/cockpit/kdump/po.zh_CN.js.gz from install of cockpit-kdump-169-1.el7.centos.noarch conflicts with file from package cockpit-system-176-4.el7.centos.noarch

file /usr/share/cockpit/networkmanager/po.zh_CN.js.gz from install of cockpit-networkmanager-169-1.el7.centos.noarch conflicts with file from package cockpit-system-176-4.el7.centos.noarch

file /usr/share/cockpit/selinux/po.zh_CN.js.gz from install of cockpit-selinux-172-2.el7.centos.noarch conflicts with file from package cockpit-system-176-4.el7.centos.noarch

file /usr/share/cockpit/sosreport/po.zh_CN.js.gz from install of cockpit-sosreport-169-1.el7.centos.noarch conflicts with file from package cockpit-system-176-4.el7.centos.noarch

8、重启cockpit# systemctl restart cockpit.service

9、强制刷新浏览器,重新输入服务器系统用户名和密码登录仪表板: