前置知識
mqtt協(xié)議文檔:https://mcxiaoke.gitbooks.io/mqtt-cn/content/mqtt/01-Introduction.html
官網(wǎng)(中文)
https://www.emqx.io/cn/products/enterprise
使用指南 下載后在bin目錄 使用emqx start,或者輸入emqx會提示出其他相關命令
訪問地址:localhost:18083
默認用戶名密碼:admin public
插件篇
設備認證
- 使用emq_auth_username
由于默認是允許匿名登錄的堪侯,所以首先關閉匿名登錄套么,windows下
emqx/etc/emqx.conf
# 改為false
allow_anonymous = false
其他配置見文檔:https://docs.emqx.io/broker/v4/cn/advanced/auth-username.html
- mysql認證,插件emqx_auth_mysql