介绍
cockpit:The easy-to-use, integrated, glanceable, and open web-based interface for your servers(官网截取)
- 系统配置与系统基本操作
- 系统日志信息查看
- 系统存储信息查看
- docker容器监控
- 系统网络监控
- k8s集群管理(我没测试)
- web命令行终端
- 仪表盘
- ......
总之功能强大就对了。
安装
我这里是用centos7版本的,此外cockpit还另外支持其他多种linux发行版
来自官网的截图:

sudo yum install -y cockpit cockpit-docker cockpit-machines cockpit-dashboard cockpit-storaged cockpit-packagekit
sudo systemctl enable --now cockpit.socket
sudo firewall-cmd --permanent --zone=public --add-service=cockpit
sudo firewall-cmd --reload
也可以安装其他模块来扩展cockpit的功能(yum install -y 模块名)
然后就可以浏览器访问9090端口了

用户名和密码就是linux服务器的用户名和密码,登陆即可进入首页。

仪表盘

如果我们另外一台机器上也安装了cockpit,也可以把那台机器添加到监控列表
点击添加

跟着提示一步一步做完,就可以将其他安装了cockpit的机器也给监控起来,我这里可以切换不同的服务器

网络监控

配置防火墙

Docker容器管理

容器启停

运行镜像以及拉取新镜像

linux服务监控

服务管理以及服务日志

web终端

软件更新

cockpit就介绍到这里了,我只介绍了很少的一部分功能,更多的功能需要读者们去发掘。