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,访问地址 ip:9090