有什么方法可以检查 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.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]
按照 hardillb
的建议将此添加到 mosquitto.conf
Mosquitto 在启动时在其日志输出的第二行打印出它正在使用的配置文件。
不改变一些基本的东西,例如它侦听的端口,并对其进行测试,您假设它正在使用该位置的文件。
问题不言自明
我是容器中的 运行 蚊子,我坚持 /mosquitto
使用 EFS
所以 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]
按照 hardillb
的建议将此添加到mosquitto.conf
Mosquitto 在启动时在其日志输出的第二行打印出它正在使用的配置文件。
不改变一些基本的东西,例如它侦听的端口,并对其进行测试,您假设它正在使用该位置的文件。