Error when you start rabbitmq services:
systemctl status rabbitmq-server
Status Display: Failed to start RabbitMQ broker
Failed to start RabbitMQ broker
And display systemctl start rabbitmq-server:
systemctl start rabbitmq-server
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.
This is generally the host is not set due to the configuration.
solution:
1, first check erlang version:
Linux, enter erl If the version number is generally no problem to jump out, or re-install erlang
yum install erlang
2, host file is not configured, mq Service To start, you need the corresponding ip and hostname mapping
vi /etc/hosts
Enter a hostname ip example: 192.168.2.9 test0001
Save it
by ip ip addr inquiry
Enter the host name hostname query
Restart systemctl start rabbitmq-server services running perfectly.