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

问题描述 投票:1回答:1

一段时间以来,我一直在努力使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。

rabbitmq epmd
1个回答
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文件夹复制到我的用户文件夹,然后再次尝试,就可以了。

© www.soinside.com 2019 - 2024. All rights reserved.