zoukankan      html  css  js  c++  java
  • 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”,该路径下已经有了一个同名文件,覆盖就好了。

  • 相关阅读:
    配置Gitlab pages和Gitlab CI
    程序员不应该错过的 6大导航
    Ice简介+Qt代码示例
    Android开发者的Anko使用指南(四)之Layouts
    三种方式绘制图片
    产品-(前后端)开发-测试的见解
    01_Docker概念简介、组件介绍、使用场景和命名空间
    Docker 创建 Confluence6.12.2 中文版
    读再多懂再多的鸡汤,不如每天敲码思考总结
    Postman Mock Server
  • 原文地址:https://www.cnblogs.com/huangzhang/p/10872438.html
Copyright © 2011-2022 走看看