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)