Centos 7.x yum installs rabbitmq-server and returns an error when it starts.

Source: Internet
Author: User
Tags centos rabbitmq

When rabbitmq-server is installed in yum, an error is reported.

[Root @ openstack ~] # Systemctl start rabbitmq-server.service
Job for rabbitmq-server.service failed. See 'systemctl status rabbitmq-server.service 'and 'journalctl-xn' for details.
[Root @ openstack ~] # Systemctl status rabbitmq-server.service
Rabbitmq-server.service-RabbitMQ broker
Loaded: loaded (/usr/lib/systemd/system/rabbitmq-server.service; enabled)
Active: failed (Result: exit-code) since 6 2016-04-30 23:19:21 CST; 8 s ago
Process: 3593 ExecStop =/usr/lib/rabbitmq/bin/rabbitmqctl stop (code = exited, status = 2)
Process: 3563 ExecStart =/usr/lib/rabbitmq/bin/rabbitmq-server (code = exited, status = 1/FAILURE)
Main PID: 3563 (code = exited, status = 1/FAILURE)

April 30 23:19:21 openstack rabbitmqctl [3593]: * epmd reports: node 'Rabbit 'not running at all
April 30 23:19:21 openstack rabbitmqctl [3593]: no other nodes on openstack
April 30 23:19:21 openstack rabbitmqctl [3593]: * suggestion: start the node
April 30 23:19:21 openstack rabbitmqctl [3593]: current node details:
April 30 23:19:21 openstack rabbitmqctl [3593]:-node name: rabbitmqctl3593 @ openstack
April 30 23:19:21 openstack rabbitmqctl [3593]:-home dir:/var/lib/rabbitmq
April 30 23:19:21 openstack rabbitmqctl [3593]:-cookie hash: DuHinHyRsf96Yx7NcAaAuQ =
April 30 23:19:21 openstack systemd [1]: rabbitmq-server.service: control process exited, code = exited status = 2
April 30 23:19:21 openstack systemd [1]: Failed to start RabbitMQ broker.
April 30 23:19:21 openstack systemd [1]: Unit rabbitmq-server.service entered failed state.


Solution:

Firewall-cmd -- permanent -- add-port = 5672/tcp
Firewall-cmd -- reload
Setsebool-P nis_enabled 1

Or a rough approach (not recommended)


Systemctl stop firewalld
Systemctl disable firewalld
Setenforce 0 (remember to change/etc/selinux/config to disable, otherwise the restart will not take effect)

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.