mqtt用户名密码activemq

为mqtt链接添加用户名密码测试

默认没有用户名密码spa

修改配置文件3d

image

添加用户名密码code

        <plugins>

            <simpleAuthenticationPlugin>

               <users>
                  <authenticationUser username="test1" password="123456" groups="users"/>
                  <authenticationUser username="test2" password="654321" groups="users,admins"/>
               </users>

            </simpleAuthenticationPlugin>

        </plugins>

添加完效果blog

image

重启mqttget

未添加用户名链接测试qt

受权失败

添加用户名链接测试it

image

链接成功io

image

相关文章
相关标签/搜索