RabbitMQ:address (cannot connect to host/port) [How to Solve]

Scene

[root@taishan-atlas init.d]# service rabbitmq-server start
Failed to get D-Bus connection: Operation not permitted
ERROR: epmd error for host taishan-atlas: address (cannot connect to host/port)

Solution

Modify/etc/hosts and add 127.0.0.1         taishan-atlas

127.0.0.1       localhost
127.0.0.1       taishan-atlas
192.168.12.42   taishan-atlas

Note: here 127.0.0.1 Taishan Atlas 192.168.12.42 Taishan atlas corresponds to the IP address in front of the host name. One is the loopback IP address and the other is the real IP address of the device. If the real IP address is not configured correctly, a similar problem will occur: error: epmd error for host Taishan Atlas: address (cannot connect to host/port)

Note: the reason why you need to manually add a local domain name is that you have modified the local machine’s host name, so you need to modify it accordingly. After the system is installed, a host name will be generated by default

Read More: