前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >RabbitMQ 启动报错:Error: unable to perform an operation on node ‘rabbit@***‘. Please see diagnostics...

RabbitMQ 启动报错:Error: unable to perform an operation on node ‘rabbit@***‘. Please see diagnostics...

作者头像
wsuo
发布2020-10-10 11:12:53
13.9K1
发布2020-10-10 11:12:53
举报
文章被收录于专栏:技术进阶之路技术进阶之路

问题描述:

安装完 ErLangRabbitMQ 之后执行 rabbitmqctl status 报错:

代码语言:javascript
复制
Error: unable to perform an operation on node 'rabbit@wangshuo'. 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 https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node rabbit@wangshuo
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

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

attempted to contact: [rabbit@wangshuo]

rabbit@wangshuo:
  * connected to epmd (port 4369) on wangshuo
  * epmd reports: node 'rabbit' not running at all
                  no other nodes on wangshuo
  * suggestion: start the node

Current node details:
 * node name: 'rabbitmqcli-19760-rabbit@wangshuo'
 * effective user's home directory: C:\Users\13343
 * Erlang cookie hash: y1wQRjvcOXX+x5pqGKKOWw==

错误的原因是 Erlang 的 cookie 出现问题,Erlang 会生成两个 cookie 文件:C:\Windows\System32\config\systemprofile\.erlang.cookieC:\用户\你的用户名\.erlang.cookie

用后者的文件替换掉前者的文件。

如果还不行,那就卸载了,然后使用 默认路径 重装。

我重装之后执行 rabbitmqctl status 好了:

然后执行 rabbitmq-plugins enable rabbitmq_management

这个时候在浏览器访问 http://localhost:15672/ 即可看到页面。

本文参与 腾讯云自媒体分享计划,分享自作者个人站点/博客。
原始发表:2020-09-29 ,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档