EMQ X 版本:emqx-centos7-4.3.5-amd64.zip 启动失败,求大神协助

环境信息

  • EMQ X 版本:emqx-centos7-4.3.5-amd64.zip
  • 操作系统及版本:CentOS Linux release 7.6.1810 (Core)

问题描述

./bin/emqx start 
EMQ X Broker 4.3.5 failed to start within 15 seconds,
see the output of './bin/emqx console' for more information.
If you want to wait longer, set the environment variable
WAIT_FOR_ERLANG to the number of seconds to wait.
[root@localhost emqx]# ./bin/emqx console
log.to = "console"
Exec: /home/emqx/erts-11.1.8/bin/erlexec -boot /home/emqx/releases/4.3.5/start -mode embedded -boot_var ERTS_LIB_DIR /home/emqx/erts-11.1.8/../lib -mnesia dir "/home/emqx/data/mnesia/emqx@127.0.0.1" -config /home/emqx/data/configs/app.2021.07.21.14.31.59.config -args_file /home/emqx/data/configs/vm.2021.07.21.14.31.59.args -vm_args /home/emqx/data/configs/vm.2021.07.21.14.31.59.args -start_epmd false -epmd_module ekka_epmd -proto_dist ekka -- console
Root: /home/emqx
/home/emqx
Erlang/OTP 23 [erts-11.1.8] [emqx] [64-bit] [smp:8:8] [ds:8:8:8] [async-threads:4]

Starting emqx on node emqx@127.0.0.1
Start http:management listener on 8081 successfully.
Start http:dashboard listener on 18083 successfully.
Start mqtt:tcp:internal listener on 127.0.0.1:11883 successfully.
2021-07-21T14:32:04.490209+08:00 [error] mqtt:tcp failed to listen on 1883 - eaddrinuse (address already in use)
2021-07-21T14:32:04.490543+08:00 [error] crasher: initial call: esockd_listener:init/1, pid: <0.1813.0>, registered_name: [], exit: {eaddrinuse,[{gen_server,init_it,6,[{file,"gen_server.erl"},{line,401}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,226}]}]}, ancestors: [<0.1810.0>,esockd_sup,<0.1555.0>], message_queue_len: 0, messages: [], links: [<0.1810.0>], dictionary: [], trap_exit: true, status: running, heap_size: 1598, stack_size: 28, reductions: 4213; neighbours:
Failed to start mqtt listener mqtt:tcp:external on 0.0.0.0:1883: {eaddrinuse,{child,undefined,{liste

2021-07-21T14:32:04.490543+08:00 [error] crasher: initial call: esockd_listener:init/1, pid: <0.1813.0>, registered_name: [], exit: {eaddrinuse,[{gen_server,init_it,6,[{file,"gen_server.erl"},{line,401}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,226}]}]}, ancestors: [<0.1810.0>,esockd_sup,<0.1555.0>], message_queue_len: 0, messages: [], links: [<0.1810.0>], dictionary: [], trap_exit: true, status: running, heap_size: 1598, stack_size: 28, reductions: 4213; neighbours:
Failed to start mqtt listener mqtt:tcp:external on 0.0.0.0:1883: {eaddrinuse,{child,undefined,{listener_sup,{'mqtt:tcp',{{0,0,0,0},1883}}},{esockd_listener_sup,start_link,[tcp,'mqtt:tcp',{{0,0,0,0},1883},[{tcp_options,[binary,{packet,raw},{reuseaddr,true},{backlog,1024},{nodelay,true},{send_timeout,15000},{send_timeout_close,true},{high_watermark,1048576}]},{acceptors,8},{max_connections,1024000},{max_conn_rate,{1000,1}},{access_rules,[{allow,all}]}],{emqx_connection,start_link,[[{deflate_options,[]},{max_conn_rate,1000},{active_n,100},{zone,external},{proxy_address_header,<<>>},{proxy_port_header,<<>>},{supported_subprotocols,[]}]]}]},transient,infinity,supervisor,[esockd_listener_sup]}}
2021-07-21T14:32:04.491305+08:00 [error] crasher: initial call: application_master:init/4, pid: <0.1571.0>, registered_name: [], exit: {{bad_return,{{emqx_app,start,[normal,[]]},{'EXIT',{{eaddrinuse,{child,undefined,{listener_sup,{'mqtt:tcp',{{0,...},1883}}},{esockd_listener_sup,start_link,[tcp,'mqtt:tcp'|...]},transient,infinity,supervisor,[esockd_listener_sup]}},[{emqx_listeners,start_listener,1,[{file,"emqx_listeners.erl"},{line,114}]},{lists,foreach,2,[{file,"lists.erl"},{line,1342}]},{emqx_app,start,2,[{file,[...]},{line,...}]},{application_master,start_it_old,4,[{file,...},{...}]}]}}}},[{application_master,init,4,[{file,"application_master.erl"},{line,138}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,226}]}]}, ancestors: [<0.1570.0>], message_queue_len: 1, messages: [{'EXIT',<0.1572.0>,normal}], links: [<0.1570.0>,<0.1431.0>], dictionary: [], trap_exit: true, status: running, heap_size: 987, stack_size: 28, reductions: 313; neighbours:

running, heap_size: 987, stack_size: 28, reductions: 313; neighbours:
Stop http:management listener on 0.0.0.0:8081 successfully.
[os_mon] memory supervisor port (memsup): Erlang has closed
[os_mon] cpu supervisor port (cpu_sup): Erlang has closed
{"Kernel pid terminated",application_controller,"{application_start_failure,emqx,{bad_return,{{emqx_app,start,[normal,[]]},{'EXIT',{{eaddrinuse,{child,undefined,{listener_sup,{'mqtt:tcp',{{0,0,0,0},1883}}},{esockd_listener_sup,start_link,[tcp,'mqtt:tcp',{{0,0,0,0},1883},[{tcp_options,[binary,{packet,raw},{reuseaddr,true},{backlog,1024},{nodelay,true},{send_timeout,15000},{send_timeout_close,true},{high_watermark,1048576}]},{acceptors,8},{max_connections,1024000},{max_conn_rate,{1000,1}},{access_rules,[{allow,all}]}],{emqx_connection,start_link,[[{deflate_options,[]},{max_conn_rate,1000},{active_n,100},{zone,external},{proxy_address_header,<<>>},{proxy_port_header,<<>>},{supported_subprotocols,[]}]]}]},transient,infinity,supervisor,[esockd_listener_sup]}},[{emqx_listeners,start_listener,1,[{file,\"emqx_listeners.erl\"},{line,114}]},{lists,foreach,2,[{file,\"lists.erl\"},{line,1342}]},{emqx_app,start,2,[{file,\"emqx_app.erl\"},{line,47}]},{application_master,start_it_old,4,[{file,\"application_master.erl\"},{line,277}]}]}}}}}"}
Kernel pid terminated (application_controller) ({application_start_failure,emqx,{bad_return,{{emqx_app,start,[normal,[]]},{'EXIT',{{eaddrinuse,{child,undefined,{listener_sup,{'mqtt:tcp',{{0,0,0,0},188

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

Crash dump is being written to: log/crash.dump...done
[root@localhost emqx]# cat /etc/redhat-release 
CentOS Linux release 7.6.1810 (Core) 
[root@localhost emqx]# ^C
[root@localhost emqx]# lsof -i:1883
COMMAND   PID USER   FD   TYPE    DEVICE SIZE/OFF NODE NAME
java    56402 root  139u  IPv6 110180601      0t0  TCP *:ibm-mqisdp (LISTEN)
[root@localhost emqx]# kill -9 56402
[root@localhost emqx]# ./bin/emqx start 
EMQ X Broker 4.3.5 failed to start within 15 seconds,
see the output of './bin/emqx console' for more information.
If you want to wait longer, set the environment variable
WAIT_FOR_ERLANG to the number of seconds to wait.
[root@localhost emqx]#


写的很清楚,tcp1883端口被占用