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 @   鸟不拉诗  阅读(398)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 分享一个免费、快速、无限量使用的满血 DeepSeek R1 模型,支持深度思考和联网搜索!
· 使用C#创建一个MCP客户端
· ollama系列1:轻松3步本地部署deepseek,普通电脑可用
· 基于 Docker 搭建 FRP 内网穿透开源项目(很简单哒)
· 按钮权限的设计及实现
点击右上角即可分享
微信分享提示
聊聊天