rabbitmq集群部署问题分析

xiaoxiao2021-02-28  54

可能遇到问题 错误一、在添加节点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权限即可
转载请注明原文地址: https://www.6miu.com/read-2631431.html

最新回复(0)