环境信息
问题描述
[root@iZ8vbcmookvg1wlwc80wlvZ /]# systemctl status emqx.service
● emqx.service - emqx daemon
Loaded: loaded (/usr/lib/systemd/system/emqx.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Fri 2021-07-30 11:03:25 CST; 6min ago
Process: 408939 ExecStart=/bin/sh /usr/bin/emqx start (code=exited, status=1/FAILURE)
Main PID: 399502 (code=exited, status=1/FAILURE)
Jul 30 11:03:24 iZ8vbcmookvg1wlwc80wlvZ systemd[1]: Starting emqx daemon...
Jul 30 11:03:25 iZ8vbcmookvg1wlwc80wlvZ systemd[1]: emqx.service: Control process exited, code=exited status=1
Jul 30 11:03:25 iZ8vbcmookvg1wlwc80wlvZ systemd[1]: emqx.service: Failed with result 'exit-code'.
Jul 30 11:03:25 iZ8vbcmookvg1wlwc80wlvZ systemd[1]: Failed to start emqx daemon.
[root@iZ8vbcmookvg1wlwc80wlvZ /]#
t1ger
2
你看下输出内容,应该并没有启动成功,可以看下 emqx 的日志,日志路径请参考文档:目录结构 | EMQ Docs
最常见的启动失败原因是端口被占用。