I am trying to start the rabbitmq server in centos 7. I installed erlang as it is a dependency to rabbitmq-server. Package erlang.x86_64 0:R16B-03.7.el7 .I then Installed rabbitmq using package rabbitmq-server-3.2.2-1.noarch.rpm. Installation was successful. I enabled management console uisng rabbitmq-plugins enable rabbitmq_management. But while starting the service rabbitmq-server it fails.
我正在尝试在centos 7中启动rabbitmq服务器。我安装了erlang,因为它是对rabbitmq-server的依赖。包erlang。x86_64 0:r16b - 03.7。然后,我使用package rabbitmq-server-3.2.2-1.noarch.rpm安装了rabbitmq。安装成功。我启用了管理控制台uisng rabbitmqt -plugins支持rabbitmq_management。但是,在启动服务rabbitmq-server时,它失败了。
[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.
and logs shows /var/log/rabbitmq/startup_log BOOT FAILED ===========
日志显示/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
but no process is using port 15672
但是没有进程使用端口15672。
But if I try to start it using /usr/sbin/rabbitmq-server .I successfully started the service. But my requirements are to start it using the systemctl.
但是,如果我尝试使用/usr/sbin/rabbitmq-server启动它,我成功地启动了服务。但是我的要求是使用systemctl启动它。
2 个解决方案
#1
0
It looks like a port issue. To confirm that
它看起来像一个端口问题。确认
systemctl stop firewalld
systemctl disable firewalld
And disable SELinux for the time being in /etc/selinux/config file
并且在/etc/selinux/config文件中禁用SELinux。
SELINUX=disabled
Try reboot your machine and see whether the issue persists.
试着重启你的机器,看看问题是否还在继续。
#2
18
Better answer would be to actually fix SELinux and the firewall.
更好的答案应该是修复SELinux和防火墙。
Open the port:
打开端口:
firewall-cmd --permanent --add-port=5672/tcp
firewall-cmd --reload
setsebool -P nis_enabled 1
That works for me.
这适合我。
#1
0
It looks like a port issue. To confirm that
它看起来像一个端口问题。确认
systemctl stop firewalld
systemctl disable firewalld
And disable SELinux for the time being in /etc/selinux/config file
并且在/etc/selinux/config文件中禁用SELinux。
SELINUX=disabled
Try reboot your machine and see whether the issue persists.
试着重启你的机器,看看问题是否还在继续。
#2
18
Better answer would be to actually fix SELinux and the firewall.
更好的答案应该是修复SELinux和防火墙。
Open the port:
打开端口:
firewall-cmd --permanent --add-port=5672/tcp
firewall-cmd --reload
setsebool -P nis_enabled 1
That works for me.
这适合我。