yum install cockpit* -y
systemctl start cockpit.service
systemctl enable cockpit.service
修改默認端口9090 >>>8090
vim /usr/lib/systemd/system/cockpit.socket
然后重啟
sudo systemctl daemon-reload
sudo systemctl restart cockpit.socket
systemctl restart cockpit.service
ok!!!
web訪問(安裝cockpit會自動生成ssl證書,所有可以直接使用https,安全)
https://ip:8090
修改端口: