一看必会系列:解决linux Error: unable to perform an operation on node ‘rabbit@

来源:本站原创 IT必备工具 超过21 views围观 0条评论

[root@rabbit-api-001 ~]# netstat -ntlp |grep 15672
tcp        0      0 0.0.0.0:15672           0.0.0.0:*               LISTEN      87342/beam.smp     
[root@rabbit-api-001 ~]# rabbitmqctl list_users

 

报错
Error: unable to perform an operation on node ‘rabbit@rabbit-api-001’. Please see diagnostics information and suggestions below.

Most common reasons for this are:

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

attempted to contact: [‘rabbit@rabbit-api-001’]

rabbit@rabbit-api-001:
  * connected to epmd (port 4369) on rabbit-api-001
  * node rabbit@rabbit-api-001 up, ‘rabbit’ application running

Current node details:
* node name: ‘rabbitmqcli66@rabbit-api-001’
* effective user’s home directory: /var/lib/rabbitmq
* Erlang cookie hash: PQXNPBxSq3gugPGiKks0lQ==
 
 
解决

将本机IP 写入HOST即可
  重写hosts  echo 9.2.2.4 rabbit-api-001 >> /etc/hosts
1032  cat /etc/hosts
测试  ping rabbit-api-001
重启  systemctl restart rabbitmq-server
 
验证 正常
rabbitmqctl list_users
Listing users …
ddd    [administrator]

文章出自:CCIE那点事 http://www.jdccie.com/ 版权所有。本站文章除注明出处外,皆为作者原创文章,可自由引用,但请注明来源。 禁止全文转载。
本文链接:http://www.jdccie.com/?p=3986转载请注明转自CCIE那点事
如果喜欢:点此订阅本站
  • 相关文章
  • 为您推荐
  • 各种观点

暂时还木有人评论,坐等沙发!
发表评论

快捷键:Ctrl+Enter