2

一段时间以来,我一直在努力让 RabbitMQ 在我的机器上再次工作,但没有成功。它已安装并工作,然后出了点问题。我已经卸载并安装了 v3.8.0(带有 Erlang 版本 22)。

我已经运行rabbitmq-service.bat start并且服务启动成功,但是当我运行时rabbitmqctl.bat list_users出现以下错误:

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

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

attempted to contact: [rabbit@<my hostname>]

rabbit@<my hostname>:
  * unable to connect to epmd (port 4369) on [My host name here]: address (cannot connect to host/port)


Current node details:
 * node name: 'rabbitmqcli-7856-rabbit@<my hostname>'
 * effective user's home directory: C:\Users\<myusername>
 * Erlang cookie hash: hXRZg8Foj+FXs7DwcLF6cg==

我在本地运行它,它以前一直在工作。

我已经检查过.erlang.cookie,它们是正确的。

我已运行rabbitmq-plugins enable rabbitmq_management命令启用管理插件,但无法连接到管理 UI。

4

1 回答 1

0

我有同样的问题,我能解决的唯一方法是

  1. 完全卸载rabbitmq和erl OTP,
  2. 从 c:\windows\system32\config\systemprofile 和 c:\users\username 中清除 .erlang.cookie 文件
  3. 从 Program Files 中删除 erl 和 rabbitmq 文件夹
  4. 然后从头开始重新安装所有内容。

完成后,我在 ADMINISTRATOR cmd 中使用了以下命令

rabbitmq-服务删除

rabbitmq-服务安装

rabbitmq-服务启动

然后我得到了一个关于身份验证失败的不同错误。然后我将 .erlang.cookie 从 windows 文件夹复制到我的用户文件夹并再次尝试,它成功了。

于 2020-05-15T20:00:19.237 回答