centos7.9 安装完emqx-5.0.6-el7-amd64.tar.gz包,启动报错

环境信息

  • EMQX 版本:5.0.6-el7
  • 操作系统及版本:centos7.9
  • 其他

问题描述

安装完启动emqx服务时,报超时错误,查看日志信息,显示如图所示的错误。

配置文件及日志

[wxq@VM-4-3-centos ~]$ sudo ./emqx/bin/emqx console
log.file_handlers.default.enable = EMQX_LOG__FILE_HANDLERS__DEFAULT__ENABLE = false
log.console_handler.enable = EMQX_LOG__CONSOLE_HANDLER__ENABLE = true
Erlang/OTP 24 [erts-12.2.1] [emqx] [64-bit] [smp:2:2] [ds:2:2:8] [async-threads:4]

{"Kernel pid terminated",application_controller,"{application_start_failure,kernel,{{shutdown,{failed_to_start_child,kernel_safe_sup,{on_load_function_failed,rocksdb}}},{kernel,start,[normal,[]]}}}"}
Kernel pid terminated (application_controller) ({application_start_failure,kernel,{{shutdown,{failed_to_start_child,kernel_safe_sup,{on_load_function_failed,rocksdb}}},{kernel,start,[normal,[]]}}})

Crash dump is being written to: log/erl_crash.dump...done

看起来是启动 emqx 带的 rocksdb 失败了…试试看
ldd -v lib/rocksdb-1.7.0/priv/liberocksdb.so 的输出里面 有没有什么库 not found 的

你应该需要安装libatomic

sudo yum install libatomic -y
1 个赞

已解决,谢谢

晓得了,谢谢