centos8 Cockpit web可视化linux管理工具

530 阅读1分钟

Cockpit安装启动

CentOS 8默认已安装Cockpit,直接启动服务即可;

每次启动系统会有提示,我们按提示安装

Activate the web console with: systemctl enable --now cockpit.socket

# 配置cockpit服务开机自启
systemctl enable --now cockpit.socket
# 启动cockpit服务
systemctl start cockpit
复制代码

查看启动的端口

[root@localhost ~]# netstat -ntpl
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name    
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      1121/sshd           
tcp6       0      0 :::22                   :::*                    LISTEN      1121/sshd           
tcp6       0      0 :::9090                 :::*                    LISTEN      1/systemd

安装完成后即可通过浏览器访问Cockpit,访问地址:http://ip:9090/

os1.png

Cockpit使用

概览

os2.png

服务

{4`7YKLVD0@L48B7HDKA{}W.png

日志

GY0@D}M5}R9R7SWWOKIOU.png

存储

XW@YK8`Z0H(3O9C25Q2CKLE.png

网络

4C5@_81SE8@`EC_H_VN8R3P.png

诊断报告

![{WJW{0KY2P0]HKWP]91V%XF.png](p3-juejin.byteimg.com/tos-cn-i-k3…?)

终端

OAAC%14(WIQM{D5L117FBMW.png

SELinux

os3.png

总结

CentOS 8官方内置的可视化管理功能,Cockpit很多常用的服务器管理功能非常实用,各位有空尝试下这个功能!

参考资料

官网文档:cockpit-project.org