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


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM