linux rabbitmq添加用户时报错:

错误信息:

Error: unable to perform an operation on node 'rabbit@iZ2vc8p9xf24t7go83ppkfZ'. 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@iZ2vc8p9xf24t7go83ppkfZ
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

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

attempted to contact: [rabbit@iZ2vc8p9xf24t7go83ppkfZ]

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

Current node details:
 * node name: 'rabbitmqcli-40-rabbit@iZ2vc8p9xf24t7go83ppkfZ'
 * effective user's home directory: /root
 * Erlang cookie hash: 5tN0So9quBc8H6Rd6j5QTg==
 

我看到网上说了几种方式:

1:2个erlang.cookie 位置不准确  需进行替换啥的

2:本机host问题

以上都没解决我的问题,且我在用第一种方法时都没搜索到我系统中有2个erlang.cookie,只搜索到root/.erlang.cookie这一个文件。 

我的问题是因为我在启动rabbitmq后 使用ctrl+c  退出来了,导致rabbitmq整个程序就关闭了,然后添加用户就报错了。

最后使用后台运行的方式,再添加用户就OK了

  • 3
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 2
    评论
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

xixililicm

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值