為mqtt連接添加用戶名密碼預設沒有用戶名密碼修改配置文件添加用戶名密碼 添加完效果重啟mqtt未添加用戶名連接測試添加用戶名連接測試連接成功 ...
為mqtt連接添加用戶名密碼
預設沒有用戶名密碼
修改配置文件
添加用戶名密碼
<plugins> <simpleAuthenticationPlugin> <users> <authenticationUser username="test1" password="123456" groups="users"/> <authenticationUser username="test2" password="654321" groups="users,admins"/> </users> </simpleAuthenticationPlugin> </plugins>
添加完效果
重啟mqtt
連接成功