[英]Is there any way i can check if mosquitto is indeed using my custom mosquitto.conf file instead of the default one?
The question is self explanatory问题不言自明
I am running mosquitto in a container and i am persisting /mosquitto
using EFS
so mosquitto.conf
is persisting我在容器中运行 mosquitto 并且我正在使用
EFS
持久化/mosquitto
所以mosquitto.conf
是持久化的
I want to test if mosquitto is indeed using my custom mosquitto.conf
instead of the default one我想测试 mosquitto 是否确实在使用我的自定义
mosquitto.conf
而不是默认的
How do i do this ?我该怎么做呢 ?
persistence true
persistence_location /mosquitto/data/
listener 1883
listener 9001
protocol websockets
UPDATE更新
log_dest file /mosquitto/log/mosquitto.log
log_type all
connection_messages true
log_timestamp true
log_timestamp_format [%H:%M:%S]
Adding this to mosquitto.conf
worked as suggested by hardillb将此添加到
mosquitto.conf
按照 hardillb 的建议工作
Mosquitto prints out the config file it is using on the second line of its log output when started. Mosquitto 在启动时在其日志输出的第二行打印出它正在使用的配置文件。
Without changing something fundamental eg the port it listens on, and testing it you have assume that it is using the file at location.不改变一些基本的东西,例如它侦听的端口,并对其进行测试,您假设它正在使用该位置的文件。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.