RabbitMQ -为所有用户安装

wgxvkvu9  于 2023-04-20  发布在  RabbitMQ
关注(0)|答案(1)|浏览(129)

我正在设置Windows Server 2022,安装了最新的RabbitMQ和Erlang OTP。
我可以很好地安装它,没有问题。但是当其他管理员,想使用rabbitMQ,他们不能。管理员访问兔子,都是域管理员和本地管理员
问题是,它只会运行和接受命令,从安装它的用户。你不能登录到兔子,从任何其他用户。
你们知道怎么绕过去吗?
3个管理员,花了3天的时间在谷歌上搜索,并重新加载服务器模板,以便重新安装Windows并能够安装rabbitMQ

7vhp5slm

7vhp5slm1#

您没有给予足够的信息来明确诊断问题,但我可以 * 猜测 * 发生了什么。当您报告任何软件的问题时,至少应包括以下信息:

  • 软件版本
  • 配置
  • 正在运行的命令的完整记录和显示的输出
  • 日志文件

但是,当其他管理员,想要使用rabbitMQ,他们不能.管理员访问兔子,都是域管理员和本地管理员.问题是,它只会运行和接受命令,从安装它的用户.你不能登录到兔子,从任何其他用户.
我假设“运行并接受命令”是指运行rabbitmqctl.batrabbitmq-plugins.bat等命令。
我假设当你以安装RabbitMQ的用户以外的用户身份运行其中一个命令时,你会得到一条错误消息。看到这条消息会很有帮助,但它可能是这样的:

Error: unable to perform an operation on node 'rabbit@bakkenl-z01'. 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@bakkenl-z01
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

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

attempted to contact: ['rabbit@bakkenl-z01']

rabbit@bakkenl-z01:
  * connected to epmd (port 4369) on bakkenl-z01
  * epmd reports node 'rabbit' uses port 25672 for inter-node and CLI tool traffic
  * TCP connection succeeded but Erlang distribution failed
  * suggestion: check if the Erlang cookie is identical for all server nodes and CLI tools
  * suggestion: check if all server nodes and CLI tools use consistent hostnames when addressing each other
  * suggestion: check if inter-node connections may be configured to use TLS. If so, all nodes and CLI tools must do that
   * suggestion: see the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more

Current node details:
 * node name: 'rabbitmqcli-344-rabbit@bakkenl-z01'
 * effective user's home directory: c:/Users/bakkenl
 * Erlang cookie hash: jhLS9kOjafo57g5JmVFgbQ==

输出为您提供了关于可能发生的事情的大量信息。这是相关行:

  • CLI工具无法通过服务器验证(例如,由于CLI工具的Erlang cookie与服务器的Erlang cookie不匹配)

Erlang VM使用一个“cookie”文件来验证连接。当您安装并启动RabbitMQ时,会在本地系统帐户的配置文件目录中创建一个cookie文件,该文件通常是C:\Windows\system32\config\systemprofile\.erlang.cookie(此处有文档)。
您应该将该文件复制到每个希望使用rabbitmqctl.bat和其他命令来管理RabbitMQ的用户的主目录中。如果您继续收到类似我上面提供的错误,请仔细检查您是否准确复制了该文件。校验和是确认的最佳方法:

> Get-FileHash -Path .\.erlang.cookie -Algorithm SHA256

Algorithm       Hash                                                                   Path
---------       ----                                                                   ----
SHA256          00939061A448E102D386FF0D9F05910356B352322A446C5169AB3687E8C970E4       C:\Users\bakkenl\.erlang.cookie

如果您仍然有问题,请提供所有必要的信息,并将您的问题发布到RabbitMQ的官方免费支持渠道之一:

相关问题