易陆发现互联网技术论坛

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

修改rabbitmq Web UI 监控页面的端口

[复制链接]
发表于 2018-9-4 09:50:01 | 显示全部楼层 |阅读模式

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

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

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
 楼主| 发表于 2018-9-4 09:51:15 | 显示全部楼层
{rabbitmq_management,
! M4 i$ W! r3 h6 e. k$ v+ K! R  [
9 {( H/ R" S$ ?. y+ Y% i" c& `{listener, [{port,     15672},6 D' Z1 l: m" c$ m& R( L
             {ip,       "192.168.x.x"},
- ~# f0 X* R% g5 Y/ V3 T             {ssl,     false}
! h. _2 W# N& r0 z" B2 Z3 N]},
* J7 Y3 I( z* S; I& k粘进去时候注意括号啥的,如果启动不起来 看日志 添加或者减少括号即可
您需要登录后才可以回帖 登录 | 开始注册

本版积分规则

关闭

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

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

QQ|返回首页|Archiver|小黑屋|易陆发现技术论坛 ( 蜀ICP备2026014127号-1 )点击这里给我发消息

GMT+8, 2026-4-8 21:19 , Processed in 0.040880 second(s), 22 queries .

Powered by Discuz! X3.4 Licensed

© 2012-2025 Discuz! Team.

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