cockpit修改端口为9091
cat /usr/lib/systemd/system/cockpit.socket
[Unit]
Description=Cockpit Web Service Socket
Documentation=man:cockpit-ws(8)
Wants=cockpit-motd.service
[Socket]
#ListenStream=9090
ListenStream=9091
ExecStartPost=-/usr/share/cockpit/motd/update-motd '' localhost
ExecStartPost=-/bin/ln -snf active.motd /run/cockpit/motd
ExecStopPost=-/bin/ln -snf inactive.motd /run/cockpit/motd
[Install]
WantedBy=sockets.target
重启服务
sudo systemctl daemon-reload
sudo systemctl restart cockpit.socket
sudo systemctl restart cockpit.service
netstat -tunlp | grep 9091 -w
tcp6 0 0 :::9091 :::* LISTEN 1/init
ip:9091






被折叠的 条评论
为什么被折叠?



