Windows 10上的RabbitMQ-无法连接到epmd:地址(无法连接到主机/端口)

时间:2019-10-22 15:04:50

标签: rabbitmq epmd

一段时间以来,我一直在努力使RabbitMQ在我的机器上重新工作一直没有成功。它已安装并运行,然后出了点问题。我先卸载了v3.8.0,然后安装了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。

1 个答案:

答案 0 :(得分:0)

我遇到了同样的问题,而我唯一能解决的方法是

  1. 完全卸载Rabbitmq和erl OTP,
  2. 清除.erlang.cookie文件 来自c:\ windows \ system32 \ config \ systemprofile和c:\ users \ username
  3. 从“程序文件”中删除erl和Rabbitmq文件夹
  4. 然后重新安装 从头开始。

一旦这样做,我就在ADMINISTRATOR cmd中使用了以下命令

rabbitmq-service删除

rabbitmq-service安装

rabbitmq服务启动

然后我收到有关身份验证失败的另一个错误。然后,我将.erlang.cookie从Windows文件夹复制到我的用户文件夹中,然后再次尝试即可。