https://www.cnblogs.com/knowledgesea/archive/2017/03/11/6535766.html
[root@TMS_TEST-13-58 ~]# scp /var/lib/rabbitmq/.erlang.cookie root@192.168.13.57:/var/lib/rabbitmq/
The authenticity of host '192.168.13.57 (192.168.13.57)' can't be established.
RSA key fingerprint is 2d:eb:5b:33:42:98:78:46:28:2e:90:de:7e:d0:1c:1c.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.13.57' (RSA) to the list of known hosts.
root@192.168.13.57's password:
.erlang.cookie 100% 20 0.0KB/s 00:00
[root@TMS_TEST-13-58 ~]# cat /var/lib/rabbitmq/.erlang.cookie
AVGIOYIYBYYPXZXHAAWN[root@TMS_TEST-13-58 ~]#
查看所有集群中的/var/lib/rabbitmq/.erlang.cookie是否一致
第一台服务器上:
[root@localhost conf]# cat /var/lib/rabbitmq/.erlang.cookie
AVGIOYIYBYYPXZXHAAWN
第二台服务器上:
[root@TMS_TEST-13-58 ~]# cat /var/lib/rabbitmq/.erlang.cookie
AVGIOYIYBYYPXZXHAAWN
[root@TMS_TEST-13-58 ~]# chmod 600 /var/lib/rabbitmq/.erlang.cookie