ERROR: epmd error for host YOUR_HOSTNAME: timeout (timed out)的解決方案
阿新 • • 發佈:2022-04-01
問題現象
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 *:*