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”,该路径下已经有了一个同名文件,覆盖就好了。

  • 相关阅读:
    Django ---uploads files
    powershell 更改为Oh-my-zsh
    Ubuntu server 安装Mysql
    Ubuntu下安装Python多版本开发环境
    python virtualenv 虚拟开发环境
    csv文件操作
    Could not load file or assembly ADODB, Version=7.0.3300.0
    sqlserver 循环截取字段中的某些字符
    JSON序列化的长度
    为何HttpContext.Current为NULL
  • 原文地址:https://www.cnblogs.com/huangzhang/p/10872438.html
Copyright © 2011-2022 走看看