一、取消匿名登錄
由於使用匿名登錄可能會存在安全問題,所以取消匿名登錄
打開EMQX配置文件

將下面兩項改為false 和 deny

執行 emqx restart 重啟服務。
二、添加用戶
emqx_ctl users add "yonghu" "passwd"
三、查看用戶
emqx_ctl users list
四、刪除用戶
emqx_ctl users del yonghu
五、更新用戶密碼
emqx_ctl users update "yonghu" "newpasswd"
由於使用匿名登錄可能會存在安全問題,所以取消匿名登錄
打開EMQX配置文件

將下面兩項改為false 和 deny

執行 emqx restart 重啟服務。
emqx_ctl users add "yonghu" "passwd"
emqx_ctl users list
emqx_ctl users del yonghu
emqx_ctl users update "yonghu" "newpasswd"
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。