rabbit:Mnesia could not connect to any nodes

Posted MKY-技术驿站

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了rabbit:Mnesia could not connect to any nodes相关的知识,希望对你有一定的参考价值。

环境:

rabbitmq集群   2台机器,挂了一台后重启服务,发现在服务启动不了错误如下:

 

这里rabbit连接不商rabbit02这里这个服务也无法启动

解决办法:

rabbitmq默认的数据库位置

[root@controller01 ~]# ls /var/lib/rabbitmq/mnesia/

一般命名规则(rabbit@主机名字)

rabbit@controller01  rabbit@controller01.pid  rabbit@controller01-plugins-expand  rabbit@rabbit01  rabbit@rabbit01-plugins-expand

[root@controller01 mnesia]# cd rabbit\\@controller01

 

编辑文件

[root@controller01 rabbit@controller01]# cat cluster_nodes.config
{[rabbit@controller01,rabbit@controller02],[rabbit@controller01]}.

改成

{[rabbit@controller01,],[]}.

 

 

然后重启服务就应该可以了

以上是关于rabbit:Mnesia could not connect to any nodes的主要内容,如果未能解决你的问题,请参考以下文章

从 mnesia 集群中移除 not_exist_already 节点(方案)

Could not write file: C:.......classpath

Requested enabled DevSupportManager, but DevSupportManagerImpl class was not found or could not be c

Could not resolve type alias 'map '. Cause: java.lang.ClassNotFoundException: Cannot find c

DBX error:Driver could not be properly initialized .... 解决办法

Error: could not open c:program FilesJavajrelibamd64jvm.cfg'