please check the Erlang cookie

本文介绍了当遇到RabbitMQ连接失败,特别是由于Erlang cookie不一致导致的问题时的解决方法。通过同步服务账户与运行rabbitmqctl.bat用户的Erlang Security Cookies,最终解决了TCP连接成功但Erlang分布失败的情况。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

DIAGNOSTICS
===========

attempted to contact: ['rabbit@SHOPEX-SH-A0667']

rabbit@SHOPEX-SH-A0667:
  * connected to epmd (port 4369) onSHOPEX-SH-A0667
  * epmd reports node 'rabbit' running on port25672
  * TCP connection succeeded but Erlangdistribution failed

  * Authentication failed (rejected by the remotenode), please check the Erlang
 cookie


current node details:
- node name: 'rabbitmq-cli-29@SHOPEX-SH-A0667'
- home dir: C:\Users\pangxianpeng
- cookie hash: GqqcRVa4X0hiAIlhRYUDkA==


后来网上查了很多  也没有可以解决自己问题的 最后在RabbitMQ官网(http://www.rabbitmq.com/install-windows-manual.html)看到这个
Synchronise Erlang Cookies (when running a manually installedWindows Service)

Erlang Security Cookies used by the service account and the userrunning rabbitmqctl.bat must besynchronised for rabbitmqctl.bat tofunction.

To ensure Erlang cookie files contain the same string, copy the.erlang.cookie file from the Windowsdirectory (normallyC:\WINDOWS\.erlang.cookie) to replace the user.erlang.cookie. The user cookie will bein the user's home directory (%HOMEDRIVE%%HOMEPATH%),e.g.C:\Documents and Settings\%USERNAME%\.erlang.cookie or C:\Users\%USERNAME%\.erlang.cookie (Windows Vista andlater).



然后 我将C:\WINDOWS\.erlang.cookie 覆盖掉C:\Documents and Settings\pangxianpeng\.erlang.cookie
然后执行rabbitmqctl status  可以了...
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值