坑 |
解决办法 |
参考文章 |
1.编译问题解决:mkdir: 无法创建目录"/usr/local/share/man/man1": 文件已存在 |
sudo mv /usr/local/share/man/man1 /usr/local/share/man/man1.bak |
|
2.Error: Invalid user 'mosquitto'. |
user root 增加root 用户 |
|
3.重启Mosquitto | ps -A | grep mosquitto kill -9 ***** |
|
安装mosquitto:
1、切换到/home/tool/sourceDir/mosquitto-1.4.14目录下
2、make && make install
3、安装完以后切换到 /etc 目录下查看:
4、切换到 /etc/mosquitto目录下,执行:
cp mosquitto.conf.example mosuitto.conf
5、启动mosquitto:
mosquitto -c /etc/mosquitto/mosquitto.conf
6、模拟订阅一个话题LED:
mosquitto_sub -v -t LED
7、模拟发送一个话题LED:
mosquitto_pub -t LED -m msmsmsms
mosquitto 中conf 详细说明:
# ======