一段时间以来,我一直在努力使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。
我也遇到过同样的问题,而我唯一可以解决的方法是
一旦这样做,我就在ADMINISTRATOR cmd中使用了以下命令
rabbitmq-service删除
rabbitmq-service安装
rabbitmq服务启动
然后我收到有关身份验证失败的另一个错误。然后,我将.erlang.cookie从Windows文件夹复制到我的用户文件夹,然后再次尝试,就可以了。