ERROR: epmd error for host YOUR_HOSTNAME: timeout (timed out)的解决方案

问题现象

Warning: PID file not written; -detached was passed.
ERROR: epmd error for host prd-can3-0-mq01: timeout (timed out)

问题解决
经过一番检查,其实RabbitMQ报这个错的原因是无法在/etc/hosts中正确识别主机名,因此只需修改该文件即可

127.0.0.1   prd-can3-0-mq01 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6

[root@prd-can3-0-mq01 src]# /app/rabbitmq/sbin/rabbitmq-server -detached
Warning: PID file not written; -detached was passed.
[root@prd-can3-0-mq01 src]# ss -tnl #启动成功
State      Recv-Q Send-Q            Local Address:Port              Peer Address:Port 
LISTEN     0      128                          :::5672                        :::*     
LISTEN     0      128                           *:25672                        *:*     
LISTEN     0      128                          :::4369                        :::*     
LISTEN     0      128                           *:4369                         *:*     
LISTEN     0      128                          :::22                          :::*     
LISTEN     0      128                           *:22                           *:*     
LISTEN     0      128                           *:15672                        *:*     
LISTEN     0      100                         ::1:25                          :::*     
LISTEN     0      100                   127.0.0.1:25                           *:*     
posted @ 2022-04-01 18:08  鸟不拉诗  阅读(384)  评论(0编辑  收藏  举报