Error: unable to perform an operation on node ‘rabbit@***‘. Please see diagnostics…
问题描述:
安装完 ErLang 和 RabbitMQ 之后执行 rabbitmqctl status 报错:
1 | Error: unable to perform an operation on node 'rabbit@wangshuo'. Please see diagnostics information and suggestions below. |
错误的原因是 Erlang 的 cookie 出现问题,Erlang 会生成两个 cookie 文件:
C:\Windows\System32\config\systemprofile\.erlang.cookie
C:\用户\你的用户名\.erlang.cookie。
用后者的文件替换掉前者的文件。
如果还不行,那就卸载了,然后使用 默认路径 重装。此方法最好使,能避免很多坑!
重装之后启动服务并执行 rabbitmqctl status。