mosquitto systemctl 启动配置

[Unit]
Description=Mosquitto MQTT v3.1/v3.1.1 Broker
Documentation=man:mosquitto.conf(5) man:mosquitto(8)
After=network-online.target
Wants=network-online.target
 
[Service]
ExecStart=/usr/sbin/mosquitto -c /etc/mosquitto/mosquitto.conf
User=mosquitto
LimitNOFILE=65535 #重要
[Install]
WantedBy=multi-user.target
 
mosquitto systemctl 参考 https://shaocheng.li/posts/2015/08/11/
posted @ 2020-09-19 10:35  yuzhoumeigui  阅读(784)  评论(0编辑  收藏  举报