
启动rabbitmq时,包括查看启动状态时,报错:
Error: unable to connect to node rabbit@localhost: nodedown[root@txg sbin]# rabbitmqctl status
Status of node rabbit@localhost ...
Error: unable to connect to node rabbit@localhost: nodedown
DIAGNOSTICS
===========
attempted to contact: [rabbit@localhost]
rabbit@localhost:
* connected to epmd (port 4369) on localhost
* epmd reports: node 'rabbit' not running at all
other nodes on localhost: ['rabbitmq-cli-19']
* suggestion: start the node
current node details:
- node name: 'rabbitmq-cli-19@txg'
- home dir: /var/lib/rabbitmq
- cookie hash: iVB8SwvEJodhY4r2zXPLJw==
【解决】
(1)进入目录:
cd /var/lib/rabbitmq/mnesia(2)使用 rm 命令删除: (3)重新启动:
service rabbitmq-server start(4)启动成功 【结语】
在整个rabbitmq安装和启动过程中,我遇到了很多问题,一个接一个,很令我头大。
但如果你也遇到了,请你不急不躁,不要像我一样头大,理性分析原因,相信你一定可以解决它,祝大家工作顺利!