当前位置:   article > 正文

Job for rabbitmq-server.service failed because the control process exited with error code.

job for rabbitmq-server.service failed because the control process exited wi

1.启动RabbitMQ报错

[root@192 bin]# systemctl start rabbitmq-server.service
Job for rabbitmq-server.service failed because the control process exited with error code. See "systemctl status rabbitmq-server.service" and "journalctl -xe" for details.
[root@192 bin]# systemctl status rabbitmq-server.service
● rabbitmq-server.service - RabbitMQ broker
   Loaded: loaded (/usr/lib/systemd/system/rabbitmq-server.service; disabled; vendor preset: disabled)
   Active: activating (auto-restart) (Result: exit-code) since 二 2024-02-20 14:31:55 CST; 2s ago
  Process: 120826 ExecStop=/usr/sbin/rabbitmqctl shutdown (code=exited, status=69)
  Process: 120606 ExecStart=/usr/sbin/rabbitmq-server (code=exited, status=1/FAILURE)
 Main PID: 120606 (code=exited, status=1/FAILURE)

2月 20 14:31:55 192.168.6.137 systemd[1]: Failed to start RabbitMQ broker.
2月 20 14:31:55 192.168.6.137 systemd[1]: Unit rabbitmq-server.service entered failed state.
2月 20 14:31:55 192.168.6.137 systemd[1]: rabbitmq-server.service failed.

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14

2.解决方案

2.1查看自己的ip

在这里插入图片描述

2.2查看主机名称并设置主句名称

[root@192 bin]# hostname
192.168.6.137
[root@192 bin]# hostnamectl set-hostname master
[root@192 bin]# hostname
master
[root@192 bin]# 
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6

2.3在 /etc/hosts 添加一条ip地址与主机名的映射记录

[root@192 etc]# vim /etc/hosts
[root@192 etc]# 

  • 1
  • 2
  • 3

2.4大功告成

在这里插入图片描述

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/喵喵爱编程/article/detail/928395
推荐阅读
相关标签
  

闽ICP备14008679号