我试图在centos 7中启动rabbitmq服务器.我安装了erlang,因为它是对rabbitmq-server的依赖.软件包erlang.x86_64 0:R16B-03.7.el7.然后使用包rabbitmq-server-3.2.2-1.noarch.rpm安装rabbitmq.安装成功我启用了管理控制台uisng rabbitmq-plugins启用rabbitmq_management.但是在启动服务的时候,它会失败.
[root@tve-centos ~]# systemctl start rabbitmq-server.service Job for rabbitmq-server.service Failed. See 'systemctl status rabbitmq-server.service' and 'journalctl -xn' for details. [root@tve-centos ~]# systemctl status rabbitmq-server.service rabbitmq-server.service - LSB: Enable AMQP service provided by RabbitMQ broker Loaded: loaded (/etc/rc.d/init.d/rabbitmq-server) Active: Failed (Result: exit-code) since Fri 2014-09-12 13:07:05 PDT; 8s ago Process: 20235 ExecStart=/etc/rc.d/init.d/rabbitmq-server start (code=exited,status=1/FAILURE) Sep 12 13:07:04 tve-centos su[20245]: (to rabbitmq) root on none Sep 12 13:07:05 tve-centos su[20296]: (to rabbitmq) root on none Sep 12 13:07:05 tve-centos su[20299]: (to rabbitmq) root on none Sep 12 13:07:05 tve-centos rabbitmq-server[20235]: Starting rabbitmq-server: Failed - check /var/log/rabbitmq/startup_{log,_err} Sep 12 13:07:05 tve-centos rabbitmq-server[20235]: rabbitmq-server. Sep 12 13:07:05 tve-centos systemd[1]: rabbitmq-server.service: control process exited,code=exited status=1 Sep 12 13:07:05 tve-centos systemd[1]: Failed to start LSB: Enable AMQP service provided by RabbitMQ broker. Sep 12 13:07:05 tve-centos systemd[1]: Unit rabbitmq-server.service entered Failed state.
日志显示/ var / log / rabbitmq / startup_log
引导失败
===========
Error description: {could_not_start,rabbitmq_management,{could_not_start_listener,[{port,15672}],eacces}} Log files (may contain more information): /var/log/rabbitmq/rabbit@tve-centos.log /var/log/rabbitmq/rabbit@tve-centos-sasl.log
但没有进程使用端口15672
但是,如果我尝试使用/usr/sbin / rabbitmq-server启动它.我成功启动了该服务.但是我的要求是使用systemctl启动它.
看起来像端口问题.确认
systemctl stop firewalld systemctl disable firewalld
并且暂时在/ etc / selinux / config文件中禁用SELinux
SELINUX=disabled
尝试重新启动机器,看看问题是否仍然存在.