RabbitMQ 错误解决

2018-02-28  本文已影响220人  adXiang
  1. 安装好mq后,查看状态,错误
S D:\RabbitMQ Server\rabbitmq_server-3.7.0\sbin> .\rabbitmqctl status  
Status of node rabbit@DESKTOP-ECFDCQB ...  
Error: unable to perform an operation on node 'rabbit@DESKTOP-ECFDCQB'. Please see diagnostics information and suggestions below.  
  
Most common reasons for this are:  
  
 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or 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/documentation.html to learn more  
 * Consult server logs on node rabbit@DESKTOP-ECFDCQB  
  
DIAGNOSTICS  
===========  
  
attempted to contact: ['rabbit@DESKTOP-ECFDCQB']  
  
rabbit@DESKTOP-ECFDCQB:  
  * connected to epmd (port 4369) on DESKTOP-ECFDCQB  
  * epmd reports node 'rabbit' uses port 25672 for inter-node and CLI tool traffic  
  * TCP connection succeeded but Erlang distribution failed  
  
  * Authentication failed (rejected by the remote node), please check the Erlang cookie  
  
  
Current node details:  
 * node name: 'rabbitmqcli80@DESKTOP-ECFDCQB'  
 * effective user's home directory: C:\Users\tracyclock  
 * Erlang cookie hash: Gue+A5xaV3AGwaGPZAEp3A==  

解决方法

C:\Users\ *** \ .erlang.cookie 文件

拷贝到C:\Windows\System32\config\systemprofile替换掉.erlang.cookie文件

上一篇 下一篇

猜你喜欢

热点阅读