RabbitMq ERROR: distribution port 25672 in use by rabbit

created at 08-20-2021 views: 88

error message

10:14:40.014 [error]

10:14:40.021 [error] BOOT FAILED
BOOT FAILED
10:14:40.021 [error] ===========
===========
10:14:40.021 [error] ERROR: distribution port 25672 in use by rabbit@host-117
ERROR: distribution port 25672 in use by rabbit@host-1117
10:14:40.021 [error]

10:14:41.022 [error] Supervisor rabbit_prelaunch_sup had child prelaunch started with rabbit_prelaunch:run_prelaunch_first_phase() at undefined exit with reason {dist_port_already_used,25672,"rabbit","host-17117"} in context start_error
10:14:41.022 [error] CRASH REPORT Process <0.154.0> with 0 neighbours exited with reason: {{shutdown,{failed_to_start_child,prelaunch,{dist_port_already_used,25672,"rabbit","host-172-1-17"}}},{rabbit_prelaunch_app,start,[normal,[]]}} in application_master:init/4 line 138
{"Kernel pid terminated",application_controller,"{application_start_failure,rabbitmq_prelaunch,{{shutdown,{failed_to_start_child,prelaunch,{dist_port_already_used,25672,\"rabbit\",\"host-1717\"}}},{rabbit_prelaunch_app,start,[normal,[]]}}}"}
Kernel pid terminated (application_controller) ({application_start_failure,rabbitmq_prelaunch,{{shutdown,{failed_to_start_child,prelaunch,{dist_port_already_used,25672,"rabbit","host-172-117"}}}

solution

[root@host-11117 ~]# netstat -lnp | grep 25672
tcp 0 0 0.0.0.0:25672 0.0.0.0:* LISTEN 2452/beam.smp
[root@host-1717 ~]# kill -9 2452
[root@host-17117 ~]# rabbitmq-server –detached
created at:08-20-2021
edited at: 08-20-2021: