蚊子重新加载配置文件 [英] Mosquitto reload config file

查看:83
本文介绍了蚊子重新加载配置文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

更改后,我想重新加载mosquitto密码文件. 是否可以在Windows上发送SIGHUP(信号挂断")或等同于mosquitto服务器的邮件?

解决方案

可以这样做.首先,您必须设置 mosquitto.conf ,以通过指定pid_file将pid保存到文件中.

pid_file your/pid/file

然后您可以致电

$kill -SIGHUP $(cat your/pid/file).

否则,如果您已经知道蚊子的PID,则可以

$kill -SIGHUP PID

这将发送Sighup信号并重新加载pwfile.有关更多信息,请访问 mosquitto conf

I want to reload the mosquitto password file when it is changed. Is possible to send SIGHUP ("signal hang up") or some equivalent to mosquitto server on windows?

解决方案

It is possible to do so. First you have to set your mosquitto.conf to save the pid in a file by specifying the pid_file.

pid_file your/pid/file

Then you can call

$kill -SIGHUP $(cat your/pid/file).

Or else if you already know the PID of the mosquitoo, then you can do

$kill -SIGHUP PID

This will send sighup signal and reload the pwfile. More info can be found at mosquitto conf

这篇关于蚊子重新加载配置文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆