【发布时间】:2020-02-18 18:38:33
【问题描述】:
一段时间以来,我一直在努力让 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。
【问题讨论】:
-
epmd.exe正在运行吗?端口4369是否打开(未被防火墙阻止)? -
@LukeBakken
epmd.exe正在运行,据我所知,端口4369已打开并正在侦听 -
my hostname是否按预期解析?你能运行telnet my_hostname 4369并成功连接吗?如果您没有telnet,您可以安装它或其他工具,如netcat。您只是在测试使用预期主机名my_hostname与端口 4369 的连接是否有效。 -
我没主意了。我一直在 Windows 上运行 RabbitMQ,但从未见过它。尝试停止服务,确保所有
epmd.exe进程都已消失,然后重新启动。确保C:\Program Files\erl*中没有多个 Erlang 版本