RabbitMQ启用web控制台报错信息

  • Post author:
  • Post category:其他



1. 启用Web客户端添加用户报错

C:\Program Files\RabbitMQ Server\rabbitmq_server-3.7.4\sbin>rabbitmqctl add_user

admin admin

Error: unable to perform an operation on node

‘rabbit@Xcm-PC’

. Please see diagno

stics 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@Xcm-PC

DIAGNOSTICS

===========

attempted to contact: [‘rabbit@Xcm-PC’]


rabbit@Xcm-PC

:

* connected to epmd (port 4369) on Xcm-PC

* 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:

‘rabbitmqcli20@Xcm-PC’


* effective user’s home directory: C:\Users\Xcm

* Erlang cookie hash: RmzKErjVZUcsMU8wSgBGbA==

根据提示显示应该是Cookie出现问题。

1. 解决方式:修改Cookie信息,搜索.erlang.cookie文件,保证两个Cookie文件一致。

两个文件不一致,将两个文件内容保持一致。重新操作,OK.





版权声明:本文为xianchangmin原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。