RabbitMQ啓用web控制檯報錯信息

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.



發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章