2014年3月12日星期三

[]Rabbit - Error: mnesia_unexpectedly_running解决_我爱电脑网

本文自动转发自我的博客: http://www.haofengjing.org/2472.html
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