蚊子:在仅限本地模式下启动 [英] Mosquitto: Starting in local only mode

查看:124
本文介绍了蚊子:在仅限本地模式下启动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个虚拟机,该虚拟机应该是主机,可以接收和发送数据.第一张图片是我在主机上遇到的错误(试图从中发送数据).第二张图片是我的虚拟机上的mosquitto登录.另外,我使用的是默认配置,据我所知,它不会导致这些问题,至少从其他示例中可以看出.我对这一切的运作方式了解甚少,因此可以提供任何帮助.

I have a virtual machine that is supposed to be the host, which can receive and send data. The first picture is the error that I'm getting on my main machine (from which I'm trying to send data from). The second picture is the mosquitto log on my virtual machine. Also I'm using the default config, which as far as I know can't cause these problems, at least from what I have seen from other examples. I have very little understanding on how all of this works, so any help is appreciated.

我在主机上尝试过的操作:

What I have tried on the host machine:

  1. 禁用Windows Defender
  2. 为"mosquitto.exe"添加防火墙规则
  3. 在Linux机器上安装mosquitto

推荐答案

从Mosquitto版本2.0.0(您正在运行v2.0.2)开始,默认配置将仅绑定到localhost,作为向更安全的默认姿势.

Starting with the release of Mosquitto version 2.0.0 (you are running v2.0.2) the default config will only bind to localhost as a move to a more secure default posture.

如果要能够从其他计算机访问代理,则需要显式地编辑配置文件以添加绑定到外部IP地址(或0.0.0.0)的新listener或添加bind默认侦听器条目.

If you want to be able to access the broker from other machines you will need to explicitly edit the config files to either add a new listener that binds to the external IP address (or 0.0.0.0) or add a bind entry for the default listener.

更多详细信息,请参见2.0发行说明这里

More details can be found in the 2.0 release notes here

这篇关于蚊子:在仅限本地模式下启动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆