RabbitMQ-Error-1

RABBITMQ 在 Window 启动报错

1
Error: unable to perform an operation on node 'rabbit@Sevattal'.

问题描述:

安装完 ErLang 和 RabbitMQ 之后执行 rabbitmqctl status 报错:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Error: unable to perform an operation on node 'rabbit@Sevattal'. 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@Sevattal
- If target node is configured to use long node names, don't forget to use --longnames with CLI tools
DIAGNOSTICS
attempted to contact: [rabbit@Sevattal]
rabbit@Sevattal:
- connected to epmd (port 4369) on Sevattal
- epmd reports: node 'rabbit' not running at all
- suggestion: start the node
Current node details:
- node name: 'rabbitmqcli-932-rabbit@Sevattal'
- effective user's home directory: c:/Users/baifa
- Erlang cookie hash: 57TJuhXC3k6+xS/OPqlAPg==

错误的原因是 Erlang 的 cookie 出现问题,Erlang 会生成两个 cookie 文件:C:\Windows\System32\config\systemprofile\.erlang.cookieC:\用户\你的用户名\.erlang.cookie

1
2
3
C:\Windows\System32\config\systemprofile\.erlang.cookie

C:\用户\你的用户名\.erlang.cookie

用后者的文件替换掉前者的文件。
如果还不行,那就卸载了,然后使用 默认路径 重装。

Contents
  1. 1. RABBITMQ 在 Window 启动报错
    1. 1.1. 问题描述:
|