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                           *:*     
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章