[英]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.