找回密码
 注册
查看: 3576|回复: 2

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

[复制链接]

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
发表于 2018-8-28 21:22:19 | 显示全部楼层 |阅读模式
rabbitmqctl join_cluster rabbit@contr2
0 o; q$ U6 o9 y* H6 w+ E. x, ?Clustering node rabbit@contr1 with rabbit@contr2 ...
" |: h4 d, @4 U' XError: unable to connect to nodes [rabbit@contr2]: nodedown
; [* m: z5 ~4 U% F+ x$ v. s$ qDIAGNOSTICS
$ X5 h' \, i3 J; u===========5 u9 l) |2 J# c5 D( W6 C$ x
attempted to contact: [rabbit@contr2]
/ L; f1 s: d: D2 t7 yrabbit@controller2:
. _/ V& s1 k( i& q9 f  * connected to epmd (port 4369) on contr2* y2 P7 @4 ~: n9 E7 N
  * epmd reports node 'rabbit' running on port 25672+ a2 j5 K6 `! L& x
  * can't establish TCP connection, reason: ehostunreach (host is unreachable)# |; G0 G2 [  t, J2 {3 e2 A3 t, F
  * suggestion: blocked by firewall?3 c1 E! G# L4 o* P0 P2 K0 g3 ]
current node details:' D9 L* s0 o" B* d3 P
- node name: 'rabbitmq-cli-90@contr1'3 a, l2 U+ t, _. v" ]: c+ Z
- home dir: /var/lib/rabbitmq
0 k- ~  O3 y% V+ m/ \* J- cookie hash: Q4fSnrFZzA0emGepl4tdKw==5 r6 b$ V) q% i7 l

+ w( m/ O# {/ V* \/ V7 v& [/ f

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
 楼主| 发表于 2018-8-28 21:23:03 | 显示全部楼层
这种的可能性是我们在配置的时候忘记配置rabbitmq.conf文件了。

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
 楼主| 发表于 2018-8-28 21:31:54 | 显示全部楼层
修改下rabbitmq.config$ e" L) K0 d# g' K; }7 b
% Template Path: rabbitmq/templates/rabbitmq.config
, D; Y) k/ d8 Y! Y# R> [# ^2 Z7 x! O  H. s8 }
>   {kernel, [
) O) c# {" s0 ?# I>     {inet_dist_listen_min, 41055},4 N4 M4 R2 a1 z! c
> {inet_dist_listen_max, 41055},
* j2 T5 `$ Z3 ^7 E0 U& ], P>     {inet_default_connect_options, [{nodelay,true}]}, c4 F' A4 L4 q! q+ }& l
>   ]},>>>>>>>>& E. b: w; L% D9 g
& B4 w: ^( U7 c- \% F, ]1 O
这个属于隐秘的部分,按照公司的要求配置吧
8 D. V/ p$ \) o2 e" X: S8 }( Z. J5 C  ~重启rabbitmq的服务6 n7 l/ ?1 O/ |  ]5 ?# V
添加集群就可以了。
4 c# K! N. J: h  Q' i3 hrabbitmqctl join_cluster rabbit@contr2
9 W( A  t" y6 H. q8 eClustering node rabbit@contr1 with rabbit@contr2 .... k$ F/ K1 D0 t3 P" G5 R( J

+ c4 r# [. H; C4 Z! \! D
3 J. g9 I+ S! Z) J问题解决。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

返回首页|Archiver|手机版|小黑屋|易陆发现技术论坛 ( 蜀ICP备2026014127号-1 )

GMT+8, 2026-6-12 03:50 , Processed in 0.025983 second(s), 23 queries .

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

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