windows安装Mosquitto(MQTT服务)

安装说明:

https://www.cnblogs.com/xiaosongboke/p/18604458

https://blog.csdn.net/qq_44477552/article/details/143883087

 

设置账号和密码

 

.\mosquitto_passwd.exe -c .\pwfile.example admin

 

 注意:CMD以管理员方式运行。

修改配置文件mosquitto.conf

 

allow_anonymous false           #允许匿名登陆
listener 1883                  #设置端口号
log_dest file mosquitto.log   #设置日志文件
password_file  D:/Program Files/mosquitto/pwfile.example

 

 

posted @ 2025-01-16 18:59  创客未来  阅读(187)  评论(0)    收藏  举报