Error: unable to perform an operation on node 'rabbit@ASUS-PC'. Please see diagnostics information and suggestions below.

遇到上图这个错大部分问题可能是由于 RabbitMQ CLI 工具的 Erlang Cookie 与服务器上的不匹配而导致连接问题。Erlang Cookie 在 RabbitMQ 节点之间进行身份验证和安全通信时起着重要作用。
1、停止RabbitMQ的服务
rabbitmq-service stop
2、搜索并替换.erlang.cookie文件
可以在c盘搜索一下看下两个.erlang.cookie文件中的内容是否一致,不一致的话就改成一致的就可以了。将你 c:\用户\用户名 下的erlang.cookie 文件替换掉所有其他erlang.cookie文件
2.1、第一个位置:C:\用户\用户名\.erlang.cookie
2.2、第二个位置:C:\Windows\System32\config\systemprofile\.erlang.cookie
3、开启RabbitMQ服务:
rabbitmq-service start
4 、再次执行rabbitmqctl status,不出意外会报一个错:

5、执行rabbitmqctl start_app

6、再次执行rabbitmqctl status,就OK了
