rabbitmq集群部署问题分析

可能遇到问题
错误一、在添加节点node7到node6上时,遇到连接不上node6节点机器
[root@csh07 ~] # rabbitmqctl -n rabbit7@csh07 join_cluster rabbit6@csh06 Clustering node 'rabbit7@csh07' with 'rabbit6@csh06' ... Error: unable to connect to nodes [ 'rabbit6@csh06' ]: nodedownDIAGNOSTICS===========attempted to contact: [ 'rabbit6@csh06' ]rabbit6@csh06: * unable to connect to epmd (port 4369 ) on csh06: nxdomain (non-existing domain)current node details:- node name: 'rabbitmq-cli-45@csh07' - home dir: /var/lib/rabbitmq- cookie hash: a5xQrcy5rMqVgP/ZCwWUPA==

解决: 
在所有机器上的/etc/hosts文件加上如下配置,主要是添加csh06,csh07,csh08映射
192.168.1.6 node6 csh06192.168.1.7 node7 csh07192.168.1.8 node8 csh08

错误二、若提示如下
Error: unable to connect to nodes [rabbit@YUNWEI_SDK_MQ1]: nodedown

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

attempted to contact: [rabbit@YUNWEI_SDK_MQ1]

rabbit@YUNWEI_SDK_MQ1:
* connected to epmd (port 4369) on YUNWEI_SDK_MQ1
* epmd reports node 'rabbit' running on port 25672
* TCP connection succeeded but Erlang distribution failed

* Authentication failed (rejected by the remote node), please check the Erlang cookie


current node details:
- node name: 'rabbitmq-cli-45@localhost'
- home dir: /home/dhom
- cookie hash: U9JeFZ6igIdmU5eHLm5Rrw==

解决办法:
尝试将主节点$HOME下的.erlang.cookie 原封不动的拷贝过来(注意:MD5必须一样),并且赋予600权限即可
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值