最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
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,否则重启就不生效了)
相关文章
- 人们熟悉的寄居蟹属于以下哪种分类 神奇海洋11月21日答案 11-21
- 第五人格11.22共研服有什么更新 11月22日共研服更新内容介绍 11-21
- 原神恰斯卡怎么培养 11-21
- 无期迷途四星装束是谁 11-21
- 王者荣耀帝丹高中校服怎么获得 11-21
- 光遇姆明季后续版本怎么玩 11-21