emqx异常处理

请添加图片描述

启动异常

通过解压tar压缩包安装后通过 ./bin/emqx start 启动报错

WARNING: Default (insecure) Erlang cookie is in use.
WARNING: Configure node.cookie in /opt/emqx/etc/emqx.conf or override from environment variable EMQX_NODE__COOKIE
NOTE: Use the same config value for all nodes in the cluster.
!!!
Erlang/OTP 24 [erts-12.3.2.2] [emqx] [64-bit] [smp:4:4] [ds:4:4: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,quicer_nif,{{badmatch,{error,{load_failed,“Failed to load NIF library /opt/emqx/lib/quicer-0.0.16/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,54}]},{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 /opt/emqx/lib/quicer-0.0.16/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,54}]},{init,‘-run_on_load_handlers/2-fun-0-’,1,[]}]}}}},{kernel,start,[normal,[]]}}})

解决方式:
修改解压包后 /opt/emqx/etc/emqx.conf 内的cookie名 然后启动命令改为 ./bin/emqx start &

你可能感兴趣的:(服务器运维,技术方案,分布式架构,服务器,运维)