我正在尝试将 rabbitmq 用于 Django 教程,但是当我想启动服务器时出现此错误:
~$ sudo rabbitmq-server
Configuring logger redirection
14:49:57.041 [error]
14:49:57.044 [error] BOOT FAILED
BOOT FAILED
14:49:57.044 [error] ===========
===========
14:49:57.044 [error] ERROR: could not bind to distribution port 25672, it is in use by another node: rabbit@wss
ERROR: could not bind to distribution port 25672, it is in use by another node: rabbit@wss
14:49:57.045 [error]
14:49:58.046 [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","wss"} in context start_error
14:49:58.046 [error] CRASH REPORT Process <0.153.0> with 0 neighbours exited with reason: {{shutdown,{failed_to_start_child,prelaunch,{dist_port_already_used,25672,"rabbit","wss"}}},{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\",\"wss\"}}},{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","wss"}}},{rabbit_prelau
Crash dump is being written to: erl_crash.dump...done
Run Code Online (Sandbox Code Playgroud)
我已经搜索了端口以查看它是否在使用中,我使用了但lsof -i :25672我什么也没得到。
我对这些东西不太了解,所以如果你需要什么,请告诉我。
小智 6
我遇到过这个问题。我发现这个问题是因为rabbitmq-server 已经在机器上运行了。
我使用了以下命令
rabbitmqctl.bat status了解rabbitmq-server的状态。这帮助我知道服务器是启动还是关闭。
如果它已启动,这可能是您收到您在帖子中指定的错误的原因。
您可以发出以下命令来关闭服务器
rabbitmqctl.bat 停止
现在您可以尝试通过发出以下命令来启动 rabbitmq-server
rabbitmq-server 启动
请注意,我使用的是 Windows。我通过将命令提示符指向C:\Program Files\RabbitMQ\rabbitmq_server-3.8.14\sbin我的 rabbitmq 安装目录来执行这些命令C:\Program Files\RabbitMQ\rabbitmq_server-3.8.14。
| 归档时间: |
|
| 查看次数: |
5991 次 |
| 最近记录: |