最近需要更改cockpit 服務埠,具體步驟如下: mkdir -p /etc/systemd/system/cockpit.socket.d/ touch /etc/systemd/system/cockpit.socket.d/listen.conf vim /etc/systemd/syst ...
最近需要更改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;