找不到 mosquitto(windows)命令
mosquitto (on windows) command not found
我是 MQTT
和 mosquitto
的新手。
我最近使用网站 (http://www.eclipse.org/downloads/download.php?file=/mosquitto/binary/win32/mosquitto-1.4.2-install-win32.exe) 上的 Windows 二进制安装文件在我的 Windows OS 上安装了 mosquitto
。
但是,当我尝试 运行 mosquitto 命令时,它显示一条错误消息,提示未找到该命令。谷歌搜索后,我找到了下载二进制安装的相同说明。
即使当我打开保存在我的程序文件中的 mosquitto 文件夹并尝试 运行 代理应用程序时,window 打开一瞬间然后关闭。
我还下载了 HiveMQ。这可能是问题所在吗?
否则我无法理解我在安装过程中可能做错了什么。请帮忙!
None 的 mosquitto,mosquitto_pub 和 mosquitto_pub 都不是 gui 程序。您将需要通过 cmd.exe 或 powershell 或类似工具 运行 它们。例如:
run cmd.exe
cd <path to executables>
mosquitto_sub -h test.mosquitto.org -t '#'
关于"command not found"错误,您是否按照安装程序中的说明安装依赖项?
- OpenSSL - 安装 'Win32 OpenSSL vXXXXX Light' 然后将 dll 复制到 mosquitto 目录 - http://slproweb.com/products/Win32OpenSSL.html
- pthreads - 复制 'pthreadVC2.dll' 到 mosquitto 目录 ftp://sources.redhat.com/pub/pthreads-win32/dll-latest/dll/x86/
不要安装 win64openSSL,即使你有 64 位 OS :)
至于 mosquitto 是 32 位应用程序,它只能与 Win32OpenSSL 一起使用...
根据 readme-windows.txt 文件(在安装目录下找到),依赖项(OpenSSL abd Pthread)未随安装程序提供,需要单独安装:
我是 MQTT
和 mosquitto
的新手。
我最近使用网站 (http://www.eclipse.org/downloads/download.php?file=/mosquitto/binary/win32/mosquitto-1.4.2-install-win32.exe) 上的 Windows 二进制安装文件在我的 Windows OS 上安装了 mosquitto
。
但是,当我尝试 运行 mosquitto 命令时,它显示一条错误消息,提示未找到该命令。谷歌搜索后,我找到了下载二进制安装的相同说明。
即使当我打开保存在我的程序文件中的 mosquitto 文件夹并尝试 运行 代理应用程序时,window 打开一瞬间然后关闭。 我还下载了 HiveMQ。这可能是问题所在吗?
否则我无法理解我在安装过程中可能做错了什么。请帮忙!
None 的 mosquitto,mosquitto_pub 和 mosquitto_pub 都不是 gui 程序。您将需要通过 cmd.exe 或 powershell 或类似工具 运行 它们。例如:
run cmd.exe
cd <path to executables>
mosquitto_sub -h test.mosquitto.org -t '#'
关于"command not found"错误,您是否按照安装程序中的说明安装依赖项?
- OpenSSL - 安装 'Win32 OpenSSL vXXXXX Light' 然后将 dll 复制到 mosquitto 目录 - http://slproweb.com/products/Win32OpenSSL.html
- pthreads - 复制 'pthreadVC2.dll' 到 mosquitto 目录 ftp://sources.redhat.com/pub/pthreads-win32/dll-latest/dll/x86/
不要安装 win64openSSL,即使你有 64 位 OS :) 至于 mosquitto 是 32 位应用程序,它只能与 Win32OpenSSL 一起使用...
根据 readme-windows.txt 文件(在安装目录下找到),依赖项(OpenSSL abd Pthread)未随安装程序提供,需要单独安装: