ubuntu 22.04 系统,运行RabbitMQ启动命令"service rabbitmq-server start"时出错,提示如下:- root@mq00b34:~# service rabbitmq-server start
- Job for rabbitmq-server.service failed because the control process exited with error code.
- See "systemctl status rabbitmq-server.service" and "journalctl -xeu rabbitmq-server.service" for details.
- root@mq00b34:~#
复制代码
根据提示,执行了 journalctl -xe ,定位到详细的报错日志信息;
通过这个执行到命令行后,会打印出非常多的问题信息,让我们继续往下定位到ERROR处:
- Feb 13 18:24:56 mqc07ad rabbitmq-server[164600]: BOOT FAILED
- Feb 13 18:24:56 mqc07ad rabbitmq-server[164600]: ===========
- Feb 13 18:24:56 mqc07ad rabbitmq-server[164600]: Error during startup: {error,
- Feb 13 18:24:56 mqc07ad rabbitmq-server[164600]: {failed_to_cluster_with,
- Feb 13 18:24:56 mqc07ad rabbitmq-server[164600]: [rabbit@mqea393],
- Feb 13 18:24:56 mqc07ad rabbitmq-server[164600]: "Mnesia could not connect to any nodes."}}
复制代码原因分析: 提示 Mnesia无法连接到 [rabbit@mqea393] 节点,官网查询到因为mnesia的信息残留,故会认证失败。
解决办法
1. 删除已有 mnesia 信息- rm /opt/weaver/rabbitmq/mnesia/
复制代码
2. 重启服务,状态恢复正常
|