cockpit设置端口;设置多端口监听;
最近需要更改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
=9090ListenStream
=7777
重启服务,生效配置:
sudo systemctl daemon-reloadsudo systemctl restart cockpit.socketsudo systemctl restart cockpit.service
防火墙自行配置;
SELinux自行配置;
参考链接:
https://cockpit-project.org/guide/133/listen.html
保持更新,转载请注明出处;更多内容请关注cnblogs.com/xuyaowen;
以上是 cockpit设置端口;设置多端口监听; 的全部内容, 来源链接: utcz.com/z/515902.html