How did I fix «Unable to connect to epmd» for RabbitMQ in Centos 7?

I have fixed it by creating the /etc/rabbitmq/rabbitmq-env.conf file with the following contents:

HOSTNAME=localhost

stackoverflow.com/a/45475646
github.com/tradefurniturecompany/server/issues/3