RabbitMQ Authentication failed (rejected by the remote node), please check the Erlang cookie
RabbitMQ 執行下面的命令
rabbitmq_server-3.7.0\sbin> rabbitmqctl status
出現報錯
Current node details:
* node name: 'rabbitmqcli79@LAPTOP-SDG10LIN'
* effective user's home directory: C:\Users\testuser
* Erlang cookie hash: Jx59lsGpH45Mhu5eAkFMGQ==
解決辦法
找到C:\Windows\System32\config\systemprofile 路徑下有個.erlang.cookie文件, 把用戶目錄下的.erlang.cookie 文件即%USERPROFILE%\.erlang.cookie 內容改成和C:\Windows\System32\config\systemprofile\.erlang.cookie 一致就行,修改前記得備份避免出現問題無法修復.
再執行rabbitmqctl status 能正常返回結果

瀏覽器訪問 http://localhost:15672
默認的用戶名和密碼都是guest
本文來自博客園,作者:jevan,轉載請注明原文鏈接:http://www.rzrgm.cn/DoNetCShap/p/18902925

浙公網安備 33010602011771號