mosquitto 安装配置
mosquitto 安装配置
1)下载mosquitto: Download | Eclipse Mosquitto
要选择正确的mosquitto版本下载,比如笔者使用windows 2012 server,下载最新版本就不能安装,使用较旧的2.0.19版本才安装成功。
旧版本下载:Index of /files/binary/win64/
2)修改配置
mosquitto.conf
#监听1883端口
listener 1883 #使用ipv4协议簇 socket_domain ipv4 #使用mqtt协议 protocol mqtt #禁止匿名用户登录 allow_anonymous false #用户密码文件 password_file c:\mosquitto\pwfile.example
3)创建新用户
安装目录下执行: mosquitto_passwd -c pwfile.example admin,然后输入2次密码。
本文来自博客园,作者:{咏南中间件},转载请注明原文链接:https://www.cnblogs.com/hnxxcxg/p/18908500