• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
孙龙 程序员
少时总觉为人易,华年方知立业难
博客园    首页    新随笔    联系   管理    订阅  订阅
RabbitMQ 错误解决

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\tracyclock\.erlang.cookie 文件拷贝到C:\Windows\System32\config\systemprofile替换掉.erlang.cookie文件

本文来自博客园,作者:孙龙-程序员,转载请注明原文链接:https://www.cnblogs.com/sunlong88/articles/8725614.html

posted on 2018-04-06 00:46  孙龙-程序员  阅读(2040)  评论(0)    收藏  举报
刷新页面返回顶部
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3