- 积分
- 16843
在线时间 小时
最后登录1970-1-1
|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?开始注册
x
遇到一个问题,部署服务器,需要用rabbitmq自带的一个web UI监控组件,但是15672的端口没有对外映射。尝试了几种办法。开始修改rabbitmq.config,rabbitmq-ebv.config,总是不成功,因为修改的是rabbitmq-server的启动端口号,从外面访问的是web UI组件启动的端口号,两个是不一样的。然后尝试的rabbitmqadmin,因为web UI 监控页面也是调用的httpapi ,rabbitmqadmin是从官网下载一个文本文件赋予可执行权限才可,注意你放置这个文件的位置要在你的PATH里面。 b: f' ~" |. b7 ?4 M/ Y9 K
国外网站显示:9 w. v" A9 p r9 s
I’m new to RabbitMQ, but after a bit of googling and experimentation,
; d0 @0 j9 v5 c; S/ y& \+ yI was able to run the management console.
# R' f7 [3 [$ H& H p6 x) D3 yThe problem is that only port 8080 is forwarded from your Cloud9 / Q4 c9 b1 w8 u+ o. K/ I% ]
workspace, and RabbitMQ’s default port is explained here:9 Y' ?" F% L$ c0 c, M
The web UI is located at: http://server-name:15672/ To fix, we need to
1 y7 ]) G2 X% `5 Wmodify the configuration to start the web UI at port 8080. Here are 3 V) a- l7 b$ c' G# J# l; H* n. t: D
the steps I followed to get that working:( Q8 I8 i G, P+ R! Y) D3 e
Install RabbitMQ (Steps outlined here:
1 F% q6 N- s4 h% M' Shttp://www.rabbitmq.com/install-debian.html) Enable the management
) X% X9 r& i* D+ i( j/ L4 y, k/ Oconsole: sudo rabbitmq-plugins enable rabbitmq_management There wasn’t 3 s5 Q& ]+ z' L, P6 ?" V3 J
a rabbitmq.config file for me in RABBITMQHOME/etc/rabbitmq/,soIcopiedtheexamplefrom/usr/share/doc/rabbitmq−server/(afterunzippingit).EditedRABBITMQHOME/etc/rabbitmq/,soIcopiedtheexamplefrom/usr/share/doc/rabbitmq−server/(afterunzippingit).EditedRABBITMQ_HOME/etc/rabbitmq/rabbitmq.config and 3 p% Z. u4 P2 W
found the rabbitmq_management key. There’s already an existing setup * n0 b5 r: r# W i. Z4 U
that’s commented out. I replaced it with:) h6 @! o7 u3 v
{listener, [{port, 8080}, % c. p f7 ^4 X4 w! K( A7 _4 L5 Y
{ip, “0.0.0.0”}, 1 a$ D$ Z* D% Z; ?: C! i3 \; }, i
{ssl, false}]}
- \9 [0 z- N2 I# bThen I restarted the RabbitMQ server and visiting my url, i.e.:
. e" m+ k& `- V J+ k7 ~https://-.c9.io showed me the RabbitMQ 1 j" a% v! `4 [1 C$ g3 I
management login screen./ q* o' e/ x9 E' N9 C
Hope this helps!
4 [4 {9 X. S7 |7 D% a2 G3 Q0 |/ D5 o2 O$ g7 \1 M7 m
|
|