我如何修复 zerotier-one: fatal error: cannot bind to local control interface port 9993

问题:

在我的服务器上,已经使用 docker 运行 zerotier,我想在系统级别安装 zerotier。

但每当我运行 zerotier-cli 时,我看到以下错误消息:

zerotier_port_error.sh
zerotier-one: fatal error: cannot bind to local control interface port 9993

当我尝试使用 zerotier-one -d 启动守护进程时,显示此错误消息:

zerotier_missing_port_output.txt
zerotier-cli: missing port and zerotier-one.port not found in /var/lib/zerotier-one

解决方案

在我的情况下,这是由于标准端口 9993 已被 dockerized zerotier 使用。因此我需要通过创建 /var/lib/zerotier-one/local.conf 来配置自定义端口:

zerotier_local_conf.json
{
  "settings": {
    "primaryPort": 9994
  }
}

你可以选择任何你喜欢的端口。


Check out similar posts by category: Networking, ZeroTier