【问题标题】:RabbitMQ erlang cookies issueRabbitMQ erlang cookie 问题
【发布时间】:2018-09-22 17:59:00
【问题描述】:

我在我的机器(windows 7 企业版)上安装了 RabbitMQ 服务器,以便使用 spring boot 在本地开发代码。一世。 e.将 spring-boot 集成到 RabbitMQ 中。我遇到的问题是我无法使用基本的 rabbitmqctl 命令,例如甚至列出交易所。

它是这样回应的:

rabbitmqctl list_exchanges
Error: unable to perform an operation on node 'rabbit@hostname'. Please see d
iagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection o
r 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 http://rabbitmq.com/document
ation.html to learn more
 * Consult server logs on node rabbit@hostname

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

attempted to contact: [rabbit@hostname]

rabbit@hostname:
  * connected to epmd (port 4369) on hostname
  * epmd reports node 'rabbit' uses port 25672 for inter-node and CLI tool traff
ic
  * TCP connection succeeded but Erlang distribution failed

  * Authentication failed (rejected by the remote node), please check the Erlang
 cookie


Current node details:
 * node name: rabbitmqcli28@hostname
 * effective user's home directory: root_to_mo_directory
 * Erlang cookie hash: ERLANG_COOKIE_HASH_GIVEN_HERE

有什么建议吗?我该如何解决这个问题?

【问题讨论】:

  • 这个和spring没有关系,所以我把标签去掉了; RabbitMQ 工程师在rabbitmq-users google 群里闲逛,所以我建议你去那里问问。

标签: erlang rabbitmq


【解决方案1】:

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


我使用以下术语搜索谷歌site:rabbitmq.com erlang cookie,搜索结果包括this document。它根据操作系统和 Erlang 版本提供了有关 Erlang cookie 存储位置的全面信息。

由于您没有提供有关您使用的 Erlang 版本的信息,因此我无法具体告诉您在哪里查看。

找到 cookie 文件后,将其复制到用户的主目录,rabbitmqctl 命令应该可以正常工作。

【讨论】:

  • 谢谢,我就是这么做的
猜你喜欢
  • 2012-03-29
  • 1970-01-01
  • 2014-12-05
  • 2019-09-15
  • 2010-10-01
  • 1970-01-01
  • 1970-01-01
  • 2013-01-06
  • 2014-02-10
相关资源
最近更新 更多