rabbimq集群搭建报错:Error: unable TO perform an operation ON node 'rabbit@test3'. Please see diagnostics information AND suggestions below.

  When building rabbitmq cluster node when adding memory, throws an exception: Error: Unable Operation the TO AN ON the perform the Node 'The Rabbit @ Test3' Diagnostics Information Please See below the AND SUGGESTIONS..

  

  First, it assumes that the current server A, we performed A server rabbitmqctl join_cluster rabbit @ B --ram, which means that we want to join the server A to B as a memory node, and then execute the command reported the above error

  He summed up, according to the following ideas to solve this problem:

  1, view A, B of the two servers rabbitmq whether .erlang.cookie home directory file exists, and whether the same content (using cat command output), Further, if the file .erlang.cookie user's home directory set and .erlang.cookie files in the home directory rabbitmq consistent

  2, rabbitmqctl join_cluster Rabbit @ B - RAM command B is only seemingly host, IP is not, it is necessary to add the appropriate IP hosts in the / etc / - host mapping, after the addition, you can ping

  3, restart the A, B server rabbitmq related processes:  

  # Find rabbitmq related processes 
  PS -ef | grep rabbitmq 
  # kill, you can use - 9 forced to kill 
  sudo the kill 5760 5761 5917 
  # rabbitmq started, add the command & representation started in the background 
  sudo rabbitmq-Server &

 

  4, A pause in the application, and then specify join_cluster, if executed successfully, restart the application, execute the following command in A

    # Stop the application 
  sudo rabbitmqctl stop_app 
  # to add a memory node A to B to go, - RAM parameter that represents the memory node, if you do not take this argument, the disk node 
  sudo rabbitmqctl join_cluster The Rabbit @ B - RAM 
  # If the above command is successful, then launch the application 
  sudo rabbitmqctl start_app

 

Guess you like

Origin www.cnblogs.com/shanfeng1000/p/12108627.html