erlang Rabbit MQ错误:无法在节点'rabbit@USERNAME'上执行操作

col17t5w  于 2022-12-08  发布在  Erlang
关注(0)|答案(2)|浏览(339)

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

DIAGNOSTICS

attempted to contact: ['rabbit@YASHODIP-PC']
rabbit@YASHODIP-PC: * connected to epmd (port 4369) on YASHODIP-PC * epmd reports: node 'rabbit' not running at all no other nodes on YASHODIP-PC * suggestion: start the node
Current node details: * node name: 'rabbitmqcli-17388-rabbit@YASHODIP-PC' * effective user's home directory: C:\Users\yasho * Erlang cookie hash: 96Pe9121Rb1vncp1IqXA6Q==
I am not able to view the status of the rabbitMQ service installed on my local machine. Please suggest resolution.

2nc8po8w

2nc8po8w1#

发生此错误的原因
1.节点之间的群集不正确

  1. Erlang cookie无关紧要
    如果你不是在集群工作,那么第二个可能是你的问题,请研究RabbitMQ, erlang: how to "make sure the erlang cookies are the same"
sy5wg1nm

sy5wg1nm2#

如果你的主机名太长,可能会发生这种错误。这就是为什么它解释:

If target node is configured to use long node names, don't forget to use --longnames with CLI tools

溶液

编辑rabbit的配置文件(对于RHEL,类型为/etc/rabbitmq/rabbitmq.conf)。在网络部分:

#IPv4
listeners.tcp.local = 127.0.0.1:5672
#...

## write your ip and not your hostname
listeners.tcp.ohter_ip = 164.81.0.0:5672

相关问题