cockpit~一些笔记

https://access.redhat.com/documentation/zh-cn/red_hat_enterprise_linux/8/html/managing_systems_using_the_rhel_8_web_console/changing-the-web-console-port_configuring-the-web-console-listening-port
使用以下方法之一更改侦听端口:
使用 systemctl edit cockpit.socket 命令:

运行以下命令:
$ sudo systemctl edit cockpit.socket
这将打开 /etc/systemd/system/cockpit.socket.d/override.conf 文件。

修改 override.conf 的内容或以以下格式添加新内容:
[Socket]
ListenStream=
ListenStream=PORT_NUMBER
或者,将上述内容添加到 /etc/systemd/system/cockpit.socket.d/listen.conf 文件中。

创建 cockpit.socket.d. 目录和 listen.conf 文件(如果它们尚不存在)。

运行以下命令使更改生效:
$ sudo systemctl daemon-reload
$ sudo systemctl restart cockpit.socket
如果您在上一步中使用了 systemctl edit cockpit.socket,则不需要运行 systemctl daemon-reload。

posted @ 2022-11-01 13:56  multitude  阅读(116)  评论(0编辑  收藏  举报