Rabbitmqctl命令抛出错误

时间:2017-12-07 08:53:54

标签: rabbitmq rabbitmqctl

我正在尝试在RabbitMQ上创建一个3节点集群。我有第一个节点启动并运行。当我从节点2发出join cluster命令时,它会抛出节点已关闭的错误。

rabbitmqctl join_cluster rabbit@hostname02

我收到以下错误:

Status of node rabbit@hostname02 ...
Error: unable to connect to node rabbit@hostname02: nodedown

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

attempted to contact: [rabbit@hostname02]

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

current node details:
- node name: 'rabbitmq-cli-30@hostname02'
- home dir: /var/lib/rabbitmq
- cookie hash: bygafwoj/ISgb3yKej1pEg==

这是我的配置文件。

[
  {rabbit, [
    {cluster_nodes, {[rabbit@hostname01, rabbitmq@hostname02, rabbit@hostname03], disc}},
    {cluster_partition_handling, ignore},
    {tcp_listen_options,
         [binary,
         {packet,        raw},
         {reuseaddr,     true},
         {backlog,       128},
         {nodelay,       true},
         {exit_on_close, false}]
    },
    {default_user, <<"guest">>},
    {default_pass, <<"guest">>},
    {log_levels, [{autocluster, debug}, {connection, info}]}
  ]},
  {kernel, [

  ]},
  {rabbitmq_management, [
    {listener, [
      {port, 15672}
    ]}
  ]}
].
% EOF

我已使用所有3台服务器上所有3个节点的详细信息更新了/etc/hosts文件。我不确定我在哪里弄错了。

0 个答案:

没有答案
相关问题