×

Raspberry Pi Linux mosquitto OpenWrt

openwrt安装mosquitto

Kalet Kalet 发表于2021-02-03 13:51:30 浏览611 评论0

抢沙发发表评论

倒腾了一天,终于能连接上了。


1、安装以下三个包

libmosquitto-nossl

mosquitto-nossl

mosquitto-client-nossl


2、修改配置

vim /etc/mosquitto/mosquitto.conf



port 1883        
allow_anonymous false
password_file /etc/mosquitto/pwfile.example


3、添加用户密码(无mosquitto_passwd)


vim /etc/mosquitto/pwfile.example


hello:123456



群贤毕至

访客