我正在尝试在 Windows 10 中将 mosquitto 作为 docker 容器运行。下面出现错误日志地址不可用。
1614449526: mosquitto version 2.0.7 starting
1614449526: Config loaded from /mosquitto/config/mosquitto.conf.
1614449526: Starting in local only mode. Connections will only be possible from clients running on this machine.
1614449526: Create a configuration file which defines a listener to allow remote access.
1614449526: Opening ipv4 listen socket on port 1883.
1614449526: Opening ipv6 listen socket on port 1883.
**1614449526: Error: Address not available**
1614449526: mosquitto version 2.0.7 running
谁能建议如何解决这个错误?
谢谢。
我遇到过同样的问题。
我的解决方案是:
从 portainer.io 进入 mosquitto 容器项目。然后登录 mosquitto 容器的控制台。选择命令:/bin/sh
用于登录。
在命令行中调整mosquitto.conf
位于:/mosquitto/config
更改以下参数:取消注释并修复
listener 1883
persistence true
allow_anonymous true
稍后,从命令控制台退出并重新启动 mosquitto 容器...准备就绪!
检查日志!
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)