• 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:Users18838
    * Erlang cookie hash: XO2VxV30/Spco0KwTrhIxA==

    百度了一下解决方案,各种各样,试了几种 ,有一种解决了我的问题,记录一下:

    将C:Windowssystem32configsystemprofile.erlang.cookie中的.erlang.cookie文件,复制一份到错误提示中的地址,我这里是“C:Users18838”,该路径下已经有了一个同名文件,覆盖就好了。

  • 相关阅读:
    HTML2
    HTML1
    MySQL进阶part4
    pymysql模块
    MySQL进阶part3
    MySQL进阶part2
    MySQL进阶part1
    java IO中的乱码问题
    解决在IDEA中无法使用Scanner输入的问题
    IDEA配置xml文件头报错:URI is not registered (Settings | Languages & Frameworks | Schemas and DTDs)
  • 原文地址:https://www.cnblogs.com/huangzhang/p/10872438.html
Copyright © 2020-2023  润新知