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

[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]

发表评论