配置伺服器方法 1.打開 /etc/mosquitto 中的mosquitto配置檔案 mosquitto伺服器參數配置 在 /etc/mosquitto/ 建立檔案pwfile 檔案中寫入使用者名 密碼 mosquitto伺服器參數配置 啟動訂閱用戶端 mosquitto伺服器參數配置 釋出消息 mosquitto伺服器參數配置