簡體   English   中英

有什么方法可以檢查 mosquitto 是否確實在使用我的自定義 mosquitto.conf 文件而不是默認文件?

[英]Is there any way i can check if mosquitto is indeed using my custom mosquitto.conf file instead of the default one?

問題不言自明

我在容器中運行 mosquitto 並且我正在使用EFS持久化/mosquitto所以mosquitto.conf是持久化的

我想測試 mosquitto 是否確實在使用我的自定義mosquitto.conf而不是默認的

我該怎么做呢 ?

persistence true
persistence_location /mosquitto/data/
listener 1883
listener 9001
protocol websockets

更新

log_dest file /mosquitto/log/mosquitto.log
log_type all
connection_messages true
log_timestamp true
log_timestamp_format [%H:%M:%S]

將此添加到mosquitto.conf按照 hardillb 的建議工作

Mosquitto 在啟動時在其日志輸出的第二行打印出它正在使用的配置文件。

不改變一些基本的東西,例如它偵聽的端口,並對其進行測試,您假設它正在使用該位置的文件。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM