rabbitmq的啟動問題

lovfyna發表於2015-08-31

當啟動rabbitmq服務時 報如下錯時


[root@msg2 local]# rabbitmq-server start &

[1] 5492
[root@msg2 local]# 


BOOT FAILED
===========


Error description:
   {error,{inconsistent_cluster,"Node rabbit@msg2 thinks it's clustered with node rabbit@msg1, but rabbit@msg1 disagrees"}}


Log files (may contain more information):
   /var/log/rabbitmq/rabbit@msg2.log
   /var/log/rabbitmq/rabbit@msg2-sasl.log


Stack trace:
   [{rabbit_mnesia,check_cluster_consistency,0,[]},
    {rabbit,'-boot/0-fun-0-',0,[]},
    {rabbit,start_it,1,[]},
    {init,start_it,1,[]},
    {init,start_em,1,[]}]


{"init terminating in do_boot",{error,{inconsistent_cluster,"Node rabbit@msg2 thinks it's clustered with node rabbit@msg1, but rabbit@msg1 disagrees"}}}


Crash dump was written to: erl_crash.dump

init terminating in do_boot ()


解決方式為刪除mnesia資料夾 rm -rf  /var/lib/rabbitmq/mnesia

相關文章