Skip to main content
 首页 » 编程设计

rabbitmq之"node with name "兔子 "already running",还有 "unable to connect to node ' 兔子 '"

2024年04月12日65Terrylee

Rabbitmq 服务器未启动,表示它已经在运行:

$: rabbitmq-server 
Activating RabbitMQ plugins ... 
0 plugins activated: 
 
node with name "rabbit" already running on "android-d1af002161676bee" 
diagnostics: 
- nodes and their ports on android-d1af002161676bee: [{rabbit,52176}, 
                                                      {rabbitmqprelaunch2254, 
                                                       59205}] 
- current node: 'rabbitmqprelaunch2254@android-d1af002161676bee' 
- current node home dir: /Users/Jordan 
- current node cookie hash: ZSx3slRJURGK/nHXDTBRqQ== 

但是,rabbitmqctl 似乎不这么认为:

rabbitmqctl -n rabbit status 
Status of node 'rabbit@android-d1af002161676bee' ... 
Error: unable to connect to node 'rabbit@android-d1af002161676bee': nodedown 
diagnostics: 
- nodes and their ports on android-d1af002161676bee: [{rabbit,52176}, 
                                                      {rabbitmqctl2462,59256}] 
- current node: 'rabbitmqctl2462@android-d1af002161676bee' 
- current node home dir: /Users/Jordan 
- current node cookie hash: ZSx3slRJURGK/nHXDTBRqQ== 

有人接受吗?

请您参考如下方法:

rabbitmq 服务器正在某处运行,但无法连接到。

以下其中一项会提到有关兔子的事情:

$: ps aux | grep epmd 
$: ps aux | grep erl 

使用 kill -9 {rabbitmq 进程的 pid} 终止进程