在web浏览器中查看服务器并使用鼠标执行系统任务,很容易管理存储、配置网络和检查日志等操作
# 安装cockpit yum -y install cockpit # 启用cockpit systemctl enable --now cockpit.socket #设置开机自启动同时开启服务一条命令就可以搞定 # 查看开机是否启动 systemctl list-unit-files|grep cockpit cockpit-motd.service static cockpit.service static cockpit.socket enabled # enabled表示开机启动 # 启动cockpit服务 systemctl start cockpit.service # 查看状态 systemctl status cockpit.service # 使用cockpit监听9090端口 yum install net-tools netstat -tulnp | grep 9090 # 如果系统防火墙开启,则需要执行以下操作,添加cockpit服务到防火墙以打开9090端口。 firewall-cmd --add-service=cockpit --permanent firewall-cmd --reload
打开浏览器,输入 https://ip:9090
使用系统用户登录即可
效果如下:
参考资料:
- https://www.cnblogs.com/sanduzxcvbnm/p/11635542.html