6

我一直在尝试在 Windows 上设置 MQTT 代理,但没有结果。我对这个话题不是很有经验。我已经从http://mosquitto.org/download/下载了 mosquitto 文件,但我还没有让服务器运行。我下载了 Windows 的二进制文件并按照说明进行操作,但我只能让代理运行,但我无法订阅。它说“pthreadVC2.dll 丢失”,我已经尝试安装它,但我不知道该怎么做。如果您能够建议我如何让经纪人运行,我感谢您的帮助。谢谢

4

4 回答 4

7

请参阅http://git.eclipse.org/c/mosquitto/org.eclipse.mosquitto.git/tree/readme-windows.txt

依赖项 - win32

  • OpenSSL 链接:http ://slproweb.com/products/Win32OpenSSL.html 安装“Win32 OpenSSL” 所需的 DLL:libeay32.dll ssleay32.dll
  • pthreads 链接: ftp: //sourceware.org/pub/pthreads-win32 安装“pthreads-w32--release.zip 所需DLL:pthreadVC2.dll

如果这不能解决问题,您可能需要安装 Visual Studio 可再发行组件。打包的 Mosquitto 版本使用 Visual Studio 2010 编译,可在此处找到:https ://www.microsoft.com/en-gb/download/details.aspx?id=8328

于 2015-04-01T07:46:41.313 回答
3

检查此链接: https ://sivatechworld.wordpress.com/2015/06/11/step-by-step-installing-and-configuring-mosquitto-with-windows-7/

您必须将这些文件(libeay32.dll、ssleay32.dll 和 pthreadVC2.dll)包含在 mosquitto 文件夹(C:\Program Files (x86)\mosquitto)中并重新安装 mosquitto 服务器。重新安装后检查服务以查看 Mosquitto 是否作为服务运行。然后在命令提示符下使用命令 netstat -an。这将显示活动连接及其状态。

上面的链接给出了一步一步的安装过程。

于 2016-05-19T05:15:20.687 回答
1

我个人参与了开源且可扩展的 MQTT 代理:emitter.io。它是使用.NET Core 和 LibUV - github.com/emitter-io/emitter 构建的。

这里还有一个不错的 MQTT 代理列表:https ://github.com/mqtt/mqtt.github.io/wiki/servers

于 2016-11-15T11:50:52.660 回答
0

此链接将带您到 pThreads: ftp: //sources.redhat.com/pub/pthreads-win32/dll-latest/dll/x86/

您可以在哪里直接下载它:

然后将dll复制粘贴到您的蚊子安装文件夹中 在此处输入图像描述

于 2017-02-28T11:49:20.847 回答