服务启动不了

环境

  • EMQX 版本:emqx 5.3.1
  • 操作系统版本:centos7

重现此问题的步骤

执行启动命令
./emqx/bin/emqx start

预期行为

实际行为

{“Kernel pid terminated”,application_controller,“{application_start_failure,kernel,{{shutdown,{failed_to_start_child,kernel_safe_sup,{on_load_function_failed,quicer_nif,{{badmatch,{error,{load_failed,"Failed to load NIF library /data/emqx/lib/quicer-0.0.202/priv/libquicer_nif: ‘libatomic.so.1: cannot open shared object file: No such file or directory’"}}},[{quicer_nif,init,0,[{file,"quicer_nif.erl"},{line,69}]},{init,‘-run_on_load_handlers/2-fun-0-’,1,}]}}}},{kernel,start,[normal,]}}}”}
Kernel pid terminated (application_controller) ({application_start_failure,kernel,{{shutdown,{failed_to_start_child,kernel_safe_sup,{on_load_function_failed,quicer_nif,{{badmatch,{error,{load_failed,“Failed to load NIF library /data/emqx/lib/quicer-0.0.202/priv/libquicer_nif: ‘libatomic.so.1: cannot open shared object file: No such file or directory’”}}},[{quicer_nif,init,0,[{file,“quicer_nif.erl”},{line,69}]},{init,‘-run_on_load_handlers/2-fun-0-’,1,}]}}}},{kernel,start,[normal,]}}})

这个是没找到依赖库 libatomic, 安装上就行了。

然后建议使用最新的 5.6/5.7, 另外就是 centos7 太老了,这个月就要停止维护了,不建议使用

已经下载了5.7.0 版本还是报同样的问题,请问如何安装,是安装emqx文件夹里的还是还是直接通过yum 安装?

日志提示的是 Failed to load NIF library /data/emqx-5.7.0/lib/quicer-0.0.313/priv/libquicer_nif: 'libatomic.so.1:,我查找到这两个文件,在emqx下的文件夹里是有的

https://centos.pkgs.org/7/centos-x86_64/libatomic-4.8.5-44.el7.x86_64.rpm.html