0

我在 Windows Server 2008 R2 上安装了 RabbitMQ 3.6.5 / Erlang 18.0。我知道我的 RabbitMQ 节点“rabbit@447523-testap01”已启动,因为我可以使用管理 UI 连接到它。如果我运行以下命令:

C:\Program Files\RabbitMQ Server\rabbitmq_server-3.6.5\sbin\rabbitmqctl.bat status

我收到以下“nodedown”消息:

Status of node 'rabbit@447523-testap01' ...
Error: unable to connect to node 'rabbit@447523-testap01': nodedown

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

attempted to contact: ['rabbit@447523-testap01']

rabbit@447523-testap01:
  * connected to epmd (port 4369) on 447523-testap01
  * epmd reports node 'rabbit' running on port 25672
  * TCP connection succeeded but Erlang distribution failed
  * suggestion: hostname mismatch?
  * suggestion: is the cookie set correctly?
  * suggestion: is the Erlang distribution using TLS?

current node details:
- node name: 'rabbitmq-cli-33@447523-testap01'
- home dir: C:\Users\myusername
- cookie hash: 4Y+9yh7QrOGXO8aIm4YQZw==

但是,如果我使用在同一台机器上执行的 PowerShell Invoke-Command 并提供如下所示的计算机名称,它会报告它已启动!

invoke-command -computername 447523-testap01 -ScriptBlock {& 'C:\Program Files\RabbitMQ Server\rabbitmq_server-3.6.5\sbin\rabbitmqctl.bat' status}

如果我省略 -computername 参数,它会报告相同的“nodedown”消息。这里发生了什么?我已经验证了 Erlang cookie 文件在 C:\Windows\.erlang.cookie 和 %UserProfile%\.erlang.cookie 之间是相同的,并且 RabbitMQ 日志文件没有显示任何错误。

4

0 回答 0