本文主要是介绍armbian cockpit修改默认端口,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
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.servicenetstat -tunlp | grep 9091 -w
tcp6 0 0 :::9091 :::* LISTEN 1/init
ip:9091
这篇关于armbian cockpit修改默认端口的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!