windows上安装rabbitmq-server后无法启动

Md.*_*yan 3 rabbitmq

我尝试在我的cmd中运行这个“rabbitmq-server”命令,但这给了我这个错误......

Configuring logger redirection
13:44:01.865 [warning] Using RABBITMQ_ADVANCED_CONFIG_FILE: c:/Users/saikat/AppData/Roaming/RabbitMQ/advanced.config
13:44:02.838 [error]

13:44:02.838 [error] BOOT FAILED
BOOT FAILED
13:44:02.838 [error] ===========
===========
13:44:02.838 [error] ERROR: distribution port 25672 in use by another node: rabbit@DESKTOP-1I7H1RC
ERROR: distribution port 25672 in use by another node: rabbit@DESKTOP-1I7H1RC
13:44:02.838 [error]

13:44:03.839 [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","DESKTOP-1I7H1RC"} in context start_error
13:44:03.840 [error] CRASH REPORT Process <0.152.0> with 0 neighbours exited with reason: {{shutdown,{failed_to_start_child,prelaunch,{dist_port_already_used,25672,"rabbit","DESKTOP-1I7H1RC"}}},{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\",\"DESKTOP-1I7H1RC\"}}},{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","DESKTOP-1I7H1RC"}}},{r

Crash dump is being written to erl_crash.dump...done
Run Code Online (Sandbox Code Playgroud)

ido*_*000 5

毫无疑问,您已经解决了这个问题,但对于其他人来说,这可能会有所帮助,我在 Windows 上遇到了同样的问题,并通过执行以下操作成功解决了它。

  1. 在 *\rabbitmq_server-3.8.9\sbin* 中以管理员身份打开 powershell

  2. 通过运行以下命令停止服务:.\rabbitmq-service.bat stop

  3. 通过运行以下命令启动服务:.\rabbitmq-server.bat