Windows 安装
本来想着本地电脑上安装完RabbitMQ,也就跑跑测试,直接安装在Windows里也没啥问题,于是先安装了Erlang OTP,再安装RabbitMQ,配置完环境变量,启动rabbitmq-server时喜提报错:
C:\Users\Xanadu13>rabbitmqctl stop
Stopping and halting node rabbit@Xanadu ...
Error: unable to perform an operation on node 'rabbit@Xanadu'. Please see diagnostics information and suggestions below.
Most common reasons for this are:
* Target node is unreachable (e.g. due to hostname resolution, TCP connection or 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 https://rabbitmq.com/documentation.html to learn more
* Consult server logs on node rabbit@Xanadu
* If target node is configured to use long node names, don't forget to use --longnames with CLI tools
DIAGNOSTICS
===========
attempted to contact: [rabbit@Xanadu]
rabbit@Xanadu:
* connected to epmd (port 4369) on Xanadu
* epmd reports node 'rabbit' uses port 25672 for inter-node and CLI tool traffic
* TCP connection succeeded but Erlang distribution failed
* suggestion: check if the Erlang cookie is identical for all server nodes and CLI tools
* suggestion: check if all server nodes and CLI tools use consistent hostnames when addressing each other
* suggestion: check if inter-node connections may be configured to use TLS. If so, all nodes and CLI tools must do that
* suggestion: see the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
Current node details:
* node name: 'rabbitmqcli-633-rabbit@Xanadu'
* effective user's home directory: c:/Users/Xanadu13
* Erlang cookie hash: RLHiYW9O79itD2p1tY011A==
2025年3月13日大约 2 分钟