windows 安裝RabbitMQ 遇到 epmd error for host xxx: address (cannot connect to host/port)錯誤解決方法


未安裝服務,Windows下,dev環境用bat運行

運行RabbitMQ時報如下錯誤

 

Configuring logger redirection
09:11:07.009 [warning] Using RABBITMQ_ADVANCED_CONFIG_FILE: c:/Users/%UserName%/AppData/Roaming/RabbitMQ/advanced.config
09:12:14.369 [error]

09:12:14.369 [error] BOOT FAILED
BOOT FAILED
09:12:14.369 [error] ===========
09:12:14.369 [error] ERROR: epmd error for host xxxx: timeout (timed out)
===========
09:12:14.369 [error]
ERROR: epmd error for host xxxx: timeout (timed out)

 

最終解決辦法:

windows:
找到rabbitmq-env.bat文件,路徑{rabbitMq安裝路徑}/sbin/rabbitmq-env.bat,@echo off下面一行添加
set RABBITMQ_NODENAME=rabbit@localhost

如下圖

 

 再次啟動OK。

 另外附一個advanced.config配置:

[
  {
    "rabbit",
    [
      {
        "tcp_listeners",
        [
          {
            "127.0.0.1",5672
          },
          {
            "::1",5672
          }
        ]
      },

      {
        "loopback_users",[ "guest" ]
      }
    ]
  }
].

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM