gpt4 book ai didi

rabbitmq - 即使设置了 cookie 也使 RabbitMQ 身份验证失败

转载 作者:行者123 更新时间:2023-12-02 01:00:40 24 4
gpt4 key购买 nike

我最近在 lattePanda 上运行的 Windows 10 上安装了带有 ErlanOTP 的 rabbitmq
我运行了 rabbitmqctl status 并收到以下错误:

C:\Program Files\RabbitMQ Server\rabbitmq_server-3.7.5\sbin>rabbitmqctl status
Status of node rabbit@DESKTOP-V6GQ6RF ...
Error: unable to perform an operation on node 'rabbit@DESKTOP-V6GQ6RF'. 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:

DIAGNOSTICS

attempted to contact: ['rabbit@DESKTOP-V6GQ6RF']

rabbit@DESKTOP-V6GQ6RF:

  • connected to epmd (port 4369) on DESKTOP-V6GQ6RF
  • epmd reports node 'rabbit' uses port 25672 for inter-node and CLI tool traffic
  • TCP connection succeeded but Erlang distribution failed
  • Authentication failed (rejected by the remote node), please check the Erlang cookie

Current node details:

  • node name: 'rabbitmqcli2@DESKTOP-V6GQ6RF'
  • effective user's home directory: C:\Users\LattePanda
  • Erlang cookie hash: 8Kq9f/AaeixMvahU4G2v8A==

如何启动并运行 RabbitMQ?
在排除故障时,我发现了这个线程 https://groups.google.com/forum/#!topic/rabbitmq-users/a6sqrAUX_Fg
并将环境变量设置为我在 %HOMEDRIVE%%HOMEPATH%\.erlang.cookie 中找到的 Erlang Cookie但它似乎仍然不起作用。

最佳答案

RabbitMQ 团队监控 the rabbitmq-users mailing list并且有时只在 StackOverflow 上回答问题。

从正确的位置复制 cookie 很重要。 This document根据 Erlang 版本和 Windows 版本解释它的位置。你没有提到你使用的是哪个 Erlang 版本,但我怀疑你会想要复制 C:\WINDOWS\system32\config\systemprofile\.erlang.cookie文件到 %HOMEDRIVE%%HOMEPATH%\.erlang.cookie .你不应该设置任何环境变量,所以如果你有,我建议删除它们并重新启动你的服务器。

关于rabbitmq - 即使设置了 cookie 也使 RabbitMQ 身份验证失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50759737/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com