RabbitMQ erlang cookies问题
我在我的机器(Windows7Enterprise)上安装了RabbitMQ服务器,以便使用SpringBoot在本地开发代码。我E将spring引导集成到RabbitMQ中。我遇到的问题是,我无法使用基本的rabbitmqctl命令,例如列出交换 它的回应是:RabbitMQ erlang cookies问题,erlang,rabbitmq,Erlang,Rabbitmq,我在我的机器(Windows7Enterprise)上安装了RabbitMQ服务器,以便使用SpringBoot在本地开发代码。我E将spring引导集成到RabbitMQ中。我遇到的问题是,我无法使用基本的rabbitmqctl命令,例如列出交换 它的回应是: rabbitmqctl list_exchanges Error: unable to perform an operation on node 'rabbit@hostname'. Please see d iagnostics in
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
有什么建议吗?如何解决此问题?RabbitMQ团队监视并有时只回答有关StackOverflow的问题
我使用以下术语搜索了google
站点:rabbitmq.com erlang cookie
,搜索结果包括在内。它根据操作系统和Erlang版本提供有关Erlang cookie存储位置的全面信息
因为您没有提供关于您正在使用的Erlang版本的信息,所以我无法具体告诉您在哪里查找
找到cookie文件后,将其复制到用户的主目录中,
rabbitmqctl
命令应能正常工作。这与spring无关,因此我删除了标记;RabbitMQ工程师在RabbitMQ用户群上闲逛,所以我建议你去那边问问。谢谢,我就是这么做的