Windows下運行rabbitmqctl.bat list_users命令查看rabbitmq已有用戶時候報錯


今天在調試rabbitmq時候,使用rabbitmqctl.bat list_users命令查看rabbitmq已有用戶時候報錯了,錯誤如下:

Error: unable to perform an operation on node 'rabbit@DESKTOP-R8EILKD'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

* Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
* CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
* Target node is not running

In addition to the diagnostics info below:

* See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
* Consult server logs on node rabbit@DESKTOP-R8EILKD
* If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['rabbit@DESKTOP-R8EILKD']

rabbit@DESKTOP-R8EILKD:
* connected to epmd (port 4369) on DESKTOP-R8EILKD
* epmd reports: node 'rabbit' not running at all
no other nodes on DESKTOP-R8EILKD
* suggestion: start the node

Current node details:
* node name: 'rabbitmqcli-2200-rabbit@DESKTOP-R8EILKD'
* effective user's home directory: C:\Users\18838
* Erlang cookie hash: XO2VxV30/Spco0KwTrhIxA==

 

百度了一下解決方案,各種各樣,試了幾種 ,有一種解決了我的問題,記錄一下:

將C:\Windows\system32\config\systemprofile\.erlang.cookie中的.erlang.cookie文件,復制一份到錯誤提示中的地址,我這里是“C:\Users\18838”,該路徑下已經有了一個同名文件,覆蓋就好了。


免責聲明!

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



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