windows - 找不到 mosquitto(在 Windows 上)命令

标签 windows command mosquitto

我是 MQTTmosquitto 的新手。 我最近使用网站 ( http://www.eclipse.org/downloads/download.php?file=/mosquitto/binary/win32/mosquitto-1.4.2-install-win32.exe ) 上的 Windows 二进制安装文件在我的 Windows 操作系统上安装了 mosquitto

但是,当我尝试运行 mosquitto 命令时,它显示一条错误消息,提示未找到该命令。谷歌搜索后,我找到了下载二进制安装的相同说明。

即使我打开保存在我的 Program Files 中的 mosquitto 文件夹并尝试运行代理应用程序,窗口也会打开一瞬间然后关闭。 我还下载了 HiveMQ。这可能是问题所在吗?

否则我无法理解我在安装过程中可能做错了什么。请帮忙!

最佳答案

mosquitto、mosquitto_pub 和 mosquitto_pub 都不是 gui 程序。您将需要通过 cmd.exe 或 powershell 或类似工具运行它们。例如:

run cmd.exe
cd <path to executables>
mosquitto_sub -h test.mosquitto.org -t '#'

关于“找不到命令”的错误,您是否按照安装程序中的说明安装依赖项?

关于windows - 找不到 mosquitto(在 Windows 上)命令,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30522281/

相关文章:

使用 mosquitto 客户端库的 C 程序无法正常工作

windows - Mosquitto 重新加载配置文件

ssl - MQTT tls/ssl 使用 mqtt-spy 和 mqtt x 发布/订阅。 mosquitto_sub 的正确参数是什么?

c - 显示存储在 window dc 中的位图

r - 以编程方式加载文件

mysql - 无法将 mySQL 连接到 Sphinx 搜索

ruby - 要求安装失败的 RVM 错误,状态为 :1

linux - 我要在 jsp 中使用 linux 命令...但是页面无限加载

windows - 如何使用批处理文件查找Windows的安装位置

python - 按下按钮时有多个命令