Rabbit - Error: mnesia_unexpectedly_running

Centos6.2 下的 rabbitmq报错

[root@HK-210209127027 ~]# php /var/www/html/rabbitmq/receive.php
PHP Fatal error:  Uncaught exception 'AMQPConnectionException' with message 'Socket error: could not connect to host.' in /var/www/html/rabbitmq/receive.php:12
Stack trace:
#0 /var/www/html/rabbitmq/receive.php(12): AMQPConnection->connect()
#1 {main}
  thrown in /var/www/html/rabbitmq/receive.php on line 12

[root@HK-210209127027 ~]# rabbitmqctl  reset
Resetting node 'rabbit@HK-210209127027' ...
Error: mnesia_unexpectedly_running

需要执行的是:

[root@HK-210209127027 ~]# rabbitmqctl stop_app
[root@HK-210209127027 ~]# rabbitmqctl reset
[root@HK-210209127027 ~]# rabbitmqctl cluster root@HK-210209127027
参考地址:
http://stackoverflow.com/questions/14131399/rabbit-error-mnesia-unexpectedly-running
posted @ 2013-06-07 10:38  sunny5156  阅读(1080)  评论(0编辑  收藏  举报