MQTT的安装与调试
2020-08-06 本文已影响0人
夜色001
一、MQTT简介
二、MQTT下载
三、MQTT安装
1、解压安装
解压到D:\yangkunlin\tools\mqtt\apache-apollo-1.7.1,
通过管理员身份通过命令行执行bin\apollo.cmd create apolloserver
image.png
生成文件夹apolloserver,包含了data、etc、log、tmp等。
image.png
2、服务化后台运行
从前边安装过程有提示
服务化:D:\yangkunlin\tools\mqtt\apache-apollo-1.7.1\apolloserver\bin\apollo-broker-service.exe install
运行:D:\yangkunlin\tools\mqtt\apache-apollo-1.7.1\apolloserver\bin\apollo-broker-service.exe start
3、运行服务
image.png4、访问后台
https://127.0.0.1:61681
http://127.0.0.1:61680
用户名密码 admin/password
image.png
可以在配置文件中修改D:\yangkunlin\tools\mqtt\apache-apollo-1.7.1\apolloserver\etc\users.properties
image.png
四、MQTT配置
1、后台用户名密码配置
D:\yangkunlin\tools\mqtt\apache-apollo-1.7.1\apolloserver\etc\users.properties
2、端口配置
D:\yangkunlin\tools\mqtt\apache-apollo-1.7.1\apolloserver\etc\apollo.xml
image.png
五、MQTT调试
下载通信猫调试软件,可连接MQTT服务器,订阅发布消息。
image.png