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

你可能感兴趣的:(expect)