Centos7,8安装cockpit 并修改端口

来自Linux78|wiki
Bob讨论 | 贡献2020年6月16日 (二) 17:58的版本 (创建页面,内容为“ yum install cockpit* -y systemctl start cockpit.service systemctl enable cockpit.service 修改默认端口9090 > 9091 vim /usr/lib/systemd/system/cockpit.socke…”)
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)
yum install cockpit* -y
systemctl start cockpit.service
systemctl enable cockpit.service
修改默认端口9090 > 9091
vim /usr/lib/systemd/system/cockpit.socket
sudo systemctl daemon-reload
sudo systemctl restart cockpit.socket
systemctl restart cockpit.service

web访问(安装cockpit会自动生成ssl证书,所有可以直接使用https,安全)

https://ip:8090