Raspbian 连接拒绝 mosquitto 服务

Connection refused to mosquitto service in Raspbian

我在 raspberry pi A+ 上安装了全新的 raspbian 并添加了来自 mosquitto.org 的 1.4.2 mosquitto 包。

使用 https://github.com/sumnerboy12/mqtt-gpio-monitor/issues/3 的 mqtt-gpio-Monitor,我尝试连接,但总是收到一条错误消息,提示连接被拒绝。

Mosquitto_sub 可以正常工作并正确连接。

mosquitto 服务正在侦听 0.0.0.0:1883 那么这个错误的原因可能是什么?

在您 link 的问题中,您正在连接到端口 1833 而不是端口 1883。