Restarting the mosquito broker

只愿长相守 提交于 2019-12-03 14:37:59

If you've installed mosquitto from homebrew, you can use launchctl to control the service, e.g.

$ launchctl load /usr/local/Cellar/mosquitto/1.4.2/homebrew.mxcl.mosquitto.plist

$ launchctl unload /usr/local/Cellar/mosquitto/1.4.2/homebrew.mxcl.mosquitto.plist

$ launchctl start homebrew.mxcl.mosquitto
$ launchctl stop homebrew.mxcl.mosquitto
ralight

You could kill the mosquitto process using the steps detailed in the answer here, then restart it in the same way you did originally.

To summarise the answer

killall mosquitto

Should do the job to stop the existing process.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!