MQTT----apache-activemq安装说明
官网地址:https://activemq.apache.org/
一、下载安装
下载apache-activemq-5.16.3-bin.tar.gz包
tar zxvf apache-activemq-5.16.3-bin.tar.gz
cd apache-activemq-5.16.3/bin
./activemq start
服务端口:61616
二、配置用户名和密码
mqtt用户名密码activemq
为mqtt连接添加用户名密码
默认没有用户名密码
修改配置文件
添加用户名密码
<plugins> <simpleAuthenticationPlugin> <users> <authenticationUser username="test1" password="123456" groups="users"/> <authenticationUser username="test2" password="654321" groups="users,admins"/> </users> </simpleAuthenticationPlugin> </plugins>
添加完效果
重启mqtt
未添加用户名连接测试
添加用户名连接测试
连接成功
https://www.cnblogs.com/zhangxuechao/p/13251603.html