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
'[email protected]'. 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 [email protected]
DIAGNOSTICS
===========
attempted to contact: ['[email protected]']
[email protected]:
* 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: '[email protected]'
* effective user's home directory: C:\Users\Xcm
* Erlang cookie hash: RmzKErjVZUcsMU8wSgBGbA==
根据提示显示应该是Cookie出现问题。
1. 解决方式:修改Cookie信息,搜索.erlang.cookie文件,保证两个Cookie文件一致。
两个文件不一致,将两个文件内容保持一致。重新操作,OK.