想要客户端client连接mqtt,需要开启emqx_auth_username的插件
emqx_auth_username.conf中更改你想要添加的用户和密码
auth.user.1.username = admin
auth.user.1.password = public
有需要的话可以更改下面的加密模式。
备注:新版本的emqx中在etc/plugins/emqx_auth_mnesia.conf配置,需要启用emqx_auth_mnesia插件。
想要客户端client连接mqtt,需要开启emqx_auth_username的插件
emqx_auth_username.conf中更改你想要添加的用户和密码
auth.user.1.username = admin
auth.user.1.password = public
有需要的话可以更改下面的加密模式。
备注:新版本的emqx中在etc/plugins/emqx_auth_mnesia.conf配置,需要启用emqx_auth_mnesia插件。