备用 rabbitmq-server 重新启动失败 - CentOS7

备用 rabbitmq-server 重新启动失败 - CentOS7

我在 CentOS7 虚拟机上安装了 rabbitmq-server。安装完成后。我尝试重新启动服务器。我注意到成功重新启动后每次重新启动都会失败。我似乎不明白为什么会发生这种情况?

我也没有在日志中发现任何异常。我还需要查看其他内容吗?

[~]# service rabbitmq-server restart Restarting rabbitmq-server (via systemctl): Job for rabbitmq-server.service failed. See 'systemctl status rabbitmq-server.service' and 'journalctl -xn' for details. [FAILED] [~]# service rabbitmq-server restart Restarting rabbitmq-server (via systemctl): [ OK ] [root@localhost ~]# service rabbitmq-server restart Restarting rabbitmq-server (via systemctl): Job for rabbitmq-server.service failed. See 'systemctl status rabbitmq-server.service' and 'journalctl -xn' for details. [FAILED] [~]# service rabbitmq-server restart Restarting rabbitmq-server (via systemctl): [ OK ] [root@localhost ~]# service rabbitmq-server restart Restarting rabbitmq-server (via systemctl): Job for rabbitmq-server.service failed. See 'systemctl status rabbitmq-server.service' and 'journalctl -xn' for details. [FAILED] [~]# service rabbitmq-server restart Restarting rabbitmq-server (via systemctl): [ OK ]

当我运行“journalctl -xn”命令时,我看到的是它失败时的情况

su[5976]: pam_unix(su:session): session opened for user rabbitmq by (uid=0) su[5976]: pam_unix(su:session): session closed for user rabbitmq rabbitmq-server[5898]: Starting rabbitmq-server: FAILED - check /var/log/rabbitmq/startup_{log, _err} rabbitmq-server[5898]: rabbitmq-server. systemd[1]: rabbitmq-server.service: control process exited, code=exited status=1 systemd[1]: Failed to start LSB: Enable AMQP service provided by RabbitMQ broker.

'startup_err' 日志中没有任何记录,并且 rabbitmq-server 实际上已成功启动。

我尝试在网上查找可能存在的问题,但找不到任何有用的信息。任何帮助都将不胜感激。

答案1

如果有人想知道的话,结果发现这是 SELinux 的一个问题,其中 rabbitmq 进程无法在适当的位置创建 pid 文件。

相关内容