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

[root@ocean1 my.cnf.d]# systemctl status rabbitmq-server.service
● rabbitmq-server.service - RabbitMQ broker
   Loaded: loaded (/usr/lib/systemd/system/rabbitmq-server.service; enabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Wed 2020-06-24 14:40:12 CST; 2min 40s ago
  Process: 10652 ExecStart=/usr/lib/rabbitmq/bin/rabbitmq-server (code=exited, status=1/FAILURE)
 Main PID: 10652 (code=exited, status=1/FAILURE)

Jun 24 14:39:50 ocean1.com systemd[1]: Starting RabbitMQ broker...
Jun 24 14:40:12 ocean1.com rabbitmq-server[10652]: ERROR: epmd error for host ocean1: address (cannot...rt)
Jun 24 14:40:12 ocean1.com systemd[1]: rabbitmq-server.service: main process exited, code=exited, st...LURE
Jun 24 14:40:12 ocean1.com systemd[1]: Failed to start RabbitMQ broker.
Jun 24 14:40:12 ocean1.com systemd[1]: Unit rabbitmq-server.service entered failed state.
Jun 24 14:40:12 ocean1.com systemd[1]: rabbitmq-server.service failed.
Hint: Some lines were ellipsized, use -l to show in full.

问题:看到是我自己修改的主机名( ocean1)问题。epmd error for host ocean1: address (cannot…rt)

解决方法:在/etc/hosts里添加一条ip地址与主机名的映射记录

192.168.52.128 controller ocean1

之后重新启动即可。

你可能感兴趣的:(遇到的坑)