mqtt安裝及使用

mqt官網:https://docs.emqx.io/broker/v3/cn/getstarted.html

官網講述非常清晰,記得看一遍官網!!下面截圖摘自官網

mosquitt和emqttd的區別:mosquitto不支持集羣

我用的是linux-centos7環境下zip包安裝。

第一下載安裝包。下載地址:https://www.emqx.io/downloads/broker/

 wget https://www.emqx.io/downloads/broker/v4.0.1/emqx-centos7-v4.0.1.zip

第二解壓

unzip  emqx-centos7-v4.0.1.zip

第三啓動

 cd emqx

# 啓動emqx
./bin/emqx start
emqx 4.0.1 is started successfully!

# 檢查運行狀態
./bin/emqx_ctl status
Node '[email protected]' is started emqx v4.0.1 is running

# 停止emqx
./bin/emqx stop

第四設置開機自啓動

 

啓動後,MQTT 客戶端可通過 1883 端口接入系統。運行日誌輸出在 log/ 目錄。

控制檯地址: http://127.0.0.1:18083,默認用戶名: admin,密碼:public

設置開機自啓動方法:https://www.freesion.com/article/4715100771/

 

 

 

 

 

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章