windows rabbitMQ报错Error unable to perform an operation on node

win7安装rabbitMQ后,执行命令

rabbitmqctl status

验证是否成功,结果报错如下:

Status of node rabbit@liuchang ...
Error: unable to perform an operation on node 'rabbit@liuchang'. Please see diag
nostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection o
r firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang
 cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on http://rabbitmq.com/document
ation.html to learn more
 * Consult server logs on node rabbit@liuchang

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

attempted to contact: [rabbit@liuchang]

rabbit@liuchang:
  * connected to epmd (port 4369) on liuchang
  * epmd reports node 'rabbit' uses port 25672 for inter-node and CLI tool traff
ic
  * TCP connection succeeded but Erlang distribution failed

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


Current node details:
 * node name: rabbitmqcli35@liuchang
 * effective user's home directory: C:\Users\lc
 * Erlang cookie hash: sFQBZ2zBEp1D7xPVYArzwA==

解决办法:

1、将C:\Users\username\.erlang.cookie 文件复制到 C:\Windows\System32\config\systemprofile 下,替换掉.erlang.cookie。

2、重启rabbitMQ服务

net stop RabbitMQ
net start RabbitMQ

如果提示拒绝访问,使用管理员运行cmd

发表评论