按官方文档介绍的 重启emttt服务的方法 是 bin目录下 ./emqttd restart
但是我改了 etc 下的 emq.conf 然后按上面方法重启emqtt ,修改的配置并没有生效
关闭emqtt服务 ./emqttd stop
然后 ps -aux | grep emq
可以看到 还有个emqtt 守护进程在运行
[root@iZwz9ijy6ieyxskc6kgg8rZ bin]# ./emqttd stop
ok
[root@iZwz9ijy6ieyxskc6kgg8rZ bin]# ps -aux | grep emq
root 1296 0.0 0.0 11624 340 ? S Jun03 0:06 /root/emqtt/emqttd-centos7-v2.2.0/emqttd/erts-8.3/bin/epmd -daemon
root 6234 0.0 0.0 112712 984 pts/1 S+ 14:40 0:00 grep --color=auto emq
用kill 命令结束这个守护进程
kill <进程id>
然后再启动 emqtt服务
./emqttd start
之前修改的配置生效了!