易陆发现互联网技术论坛

 找回密码
 开始注册
查看: 3576|回复: 2
收起左侧

在执行rabbimq集群添加遇到这样的问题Error: unable to connect to ...

[复制链接]
发表于 2018-8-28 21:22:19 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?开始注册

x
rabbitmqctl join_cluster rabbit@contr2
5 Q" C% v$ e8 M6 U3 l2 s7 l! DClustering node rabbit@contr1 with rabbit@contr2 ...
7 T9 o2 U% z5 o4 K! JError: unable to connect to nodes [rabbit@contr2]: nodedown
5 ~6 w& P! @$ B+ ADIAGNOSTICS
6 N. m, f" x" }" c: D3 X% Z===========' N; X/ k2 u' u* Q9 s7 {% }$ D
attempted to contact: [rabbit@contr2]
5 R2 i- s8 Q$ ~) J1 Wrabbit@controller2:
, E/ D- N" u9 _/ r. D  * connected to epmd (port 4369) on contr2
- S0 U8 b' Q, a) n! {) H' F  * epmd reports node 'rabbit' running on port 256720 V6 `7 H: f* b6 X4 Q
  * can't establish TCP connection, reason: ehostunreach (host is unreachable)
7 R/ m! D+ T' L2 l' t) t  * suggestion: blocked by firewall?
% ]5 g! J1 v, D: L2 }current node details:8 m. _. S- v" Y* y5 k4 d
- node name: 'rabbitmq-cli-90@contr1'
5 y8 b3 i& M" D9 a! ^- home dir: /var/lib/rabbitmq
5 n0 U5 g: T3 Y6 S: q2 ~) J- cookie hash: Q4fSnrFZzA0emGepl4tdKw==
  t% {. _* r1 F- d" Q( |, K  a
  N, o4 V' z' k* q+ n& A* f$ K) Y+ \) i
 楼主| 发表于 2018-8-28 21:23:03 | 显示全部楼层
这种的可能性是我们在配置的时候忘记配置rabbitmq.conf文件了。
 楼主| 发表于 2018-8-28 21:31:54 | 显示全部楼层
修改下rabbitmq.config* l, n5 i# J6 T" }3 g
% Template Path: rabbitmq/templates/rabbitmq.config
" Y, u8 j; v- B0 f( ^/ m1 z" g8 W9 e> [
4 n$ q- {" h5 _6 }4 }>   {kernel, [
5 Y" `4 T! ?, S+ V" M>     {inet_dist_listen_min, 41055},
6 ^( d3 O# F0 o> {inet_dist_listen_max, 41055},
( _1 ~# e$ K3 F! q0 H. [>     {inet_default_connect_options, [{nodelay,true}]}
9 z  K1 U5 g9 c' c7 H>   ]},>>>>>>>>
  ^. ]6 [3 F8 ~1 G$ _" G# F2 a% i! ?. Z5 s- F* ~8 e: @' a
这个属于隐秘的部分,按照公司的要求配置吧& z/ Z$ I, i% r- [
重启rabbitmq的服务
( Z4 J7 s3 H) g( d0 F* b+ `$ H& E添加集群就可以了。
) K9 c" ^  T- y2 ?' irabbitmqctl join_cluster rabbit@contr24 z. v2 b/ R- T
Clustering node rabbit@contr1 with rabbit@contr2 ...
! n3 H3 e0 B. ?, `& W" y+ u, @3 p3 D0 m; s4 Q0 C: M' z; W; h! v
2 P0 |) m+ V! \! e* Z( O
问题解决。
您需要登录后才可以回帖 登录 | 开始注册

本版积分规则

关闭

站长推荐上一条 /4 下一条

北京云银创陇科技有限公司以云计算运维,代码开发

QQ|返回首页|Archiver|小黑屋|易陆发现技术论坛 点击这里给我发消息

GMT+8, 2026-4-8 15:22 , Processed in 0.039446 second(s), 22 queries .

Powered by Discuz! X3.4 Licensed

© 2012-2025 Discuz! Team.

快速回复 返回顶部 返回列表