一聚教程网:一个值得你收藏的教程网站

最新下载

热门教程

centos 7.x yum安装rabbitmq-server,启动报错解决方法

时间:2022-06-30 20:49:56 编辑:袖梨 来源:一聚教程网

yum安装好rabbitmq-server后,启动报错

[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 六 2016-04-30 23:19:21 CST; 8s 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)

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


解决办法:

firewall-cmd --permanent --add-port=5672/tcp
firewall-cmd --reload
setsebool -P nis_enabled 1

或者粗暴点的办法(不推荐)


systemctl stop firewalld
systemctl disable firewalld
setenforce 0 (记得/etc/selinux/config也改成 disable,否则重启就不生效了)

热门栏目