MQTT從入門到編程
MQTT服務器安裝與配置
1、安裝
使用apt包管理工具安裝
sudo apt install mosquitto
2、修改配置
切換到/etc/mosquitto/目錄下修改配置
cd /etc/mosquitto/
sudo gedit mosquitto.conf
添加兩個配置
allow_anonymous false
password_file /etc/mosquitto/pwfile.txt

緊接著,按照上面的配置添加/etc/mosquitto/pwfile.txt檔案并寫上用戶名和密碼
轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/344378.html
標籤:其他
上一篇:物聯網組網技術優缺點對比:藍牙、LoRa、wifi、NB-IoT、ZigBee等
下一篇:游戲類專題研究報告(合集)
