1、安装cockpit
[root@localhost ~]# dnf install cockpit -y
2、启动cockpit服务并查运行状态
[root@localhost ~]# systemctl start cockpit
[root@localhost ~]# systemctl status cockpit
2、设置开机启动
[root@localhost ~]# vim /usr/lib/systemd/system/cockpit.service
[Install]
WantedBy=multi-user.target
在服务中配置此项防止设置开机自启时报错:This means they are not meant to be enabled using systemctl.
[root@localhost ~]# systemctl enable cockpit
3、系统防火墙开放Cockpit-9090端口
[root@localhost ~]# firewall-cmd --permanent --add-service=cockpit
[root@localhost ~]# firewall-cmd --reload
4、WEB访问cockpit平台
Url地址:https://ip:9090,帐号和密码为系统内部帐号。