最近需要更改cockpit 服务端口,具体步骤如下:
mkdir -p /etc/systemd/system/cockpit.socket.d/
touch
/etc/systemd/system/cockpit.socket.d/listen.conf
vim /etc/systemd/system/cockpit.socket.d/listen.conf
在listen.conf 文件中,输入:
[Socket]
ListenStream=9090
ListenStream=7777
重启服务,生效配置:
sudo systemctl daemon-reload
sudo systemctl restart cockpit.socket
sudo systemctl restart cockpit.service
防火墙自行配置;
SELinux自行配置;
参考链接:
https://cockpit-project.org/guide/133/listen.html
保持更新,转载请注明出处;更多内容请关注cnblogs.com/xuyaowen;
来源:oschina
链接:https://my.oschina.net/u/4399548/blog/4255397