【问题标题】:Error Mosquitto with websockets enabled on FreeBSD在 FreeBSD 上启用 websocket 的错误 Mosquitto
【发布时间】:2015-10-27 06:50:35
【问题描述】:

一直在尝试在 FreeBSD 上启用 websocket 安装 mosquitto。

以下是步骤。FreeBSD 10.2-BETA1-p1 , amd64。

  1. 在 freebsd 上安装了可用的 mosquitto 端口。

  2. 对位于 /usr/ports/distfiles 的文件 mosquitto-1.4.4.tar.gz 中的 config.mk 进行了更改

  3. 更改了 /usr/ports/net/mosquitto 中 distinfo 中的 SHA 256 和文件大小。这是为了确保文件不会再次从网上下载。

  4. pkg 去除蚊子
  5. 清理干净
  6. 进行安装
  7. 对 /usr/local/etc/mosquitto/mosquitto.conf 进行了更改。 [端口 1883 监听器 9001 协议 websockets]
  8. mosquitto -d -c /usr/local/etc/mosquitto/mosquitto.conf

错误:Websockets 支持不可用。

在 /usr/local/etc/mosquitto/mosquitto.conf:152 发现错误。

无法弄清楚可能是什么问题。我检查了 mosquitto 端口中的工作文件夹,看看 websockets 是否设置为 yes。一切似乎都是正确的。

感谢您的帮助,提前感谢大家。

GS

【问题讨论】:

  • 您找到解决方案了吗?

标签: websocket mqtt mosquitto


【解决方案1】:

您需要在创建之前更改 conf 文件。并在 make clean 之后运行 make。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2011-12-08
    • 1970-01-01
    • 1970-01-01
    • 2015-08-03
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多