欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

RabbitMQ 启动报错:Error: unable to perform an operation on node ‘[email protected]***‘. Please see diagnostics...

程序员文章站 2022-04-28 11:58:52
...

问题描述:

安装完 ErLang 和 RabbitMQ 之后执行 rabbitmqctl status 报错:

Error: unable to perform an operation on node 'aaa@qq.com'. 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 aaa@qq.com
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

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

attempted to contact: [aaa@qq.com]

aaa@qq.com:
  * 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: 'aaa@qq.com'
 * effective user's home directory: C:\Users\13343
 * Erlang cookie hash: y1wQRjvcOXX+x5pqGKKOWw==

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

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

RabbitMQ 启动报错:Error: unable to perform an operation on node ‘[email protected]***‘. Please see diagnostics...
如果还不行,那就卸载了,然后使用 默认路径 重装。

我重装之后执行 rabbitmqctl status 好了:
RabbitMQ 启动报错:Error: unable to perform an operation on node ‘[email protected]***‘. Please see diagnostics...
然后执行 rabbitmq-plugins enable rabbitmq_management

RabbitMQ 启动报错:Error: unable to perform an operation on node ‘[email protected]***‘. Please see diagnostics...
这个时候在浏览器访问 http://localhost:15672/ 即可看到页面。
RabbitMQ 启动报错:Error: unable to perform an operation on node ‘[email protected]***‘. Please see diagnostics...