易陆发现互联网技术论坛

 找回密码
 开始注册
查看: 4672|回复: 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里面。
5 Z: ~2 m0 O7 [' v% [国外网站显示:; m9 [2 a- }1 B% `; U
I’m new to RabbitMQ, but after a bit of googling and experimentation, : i6 D6 p/ ?! `1 K1 J
I was able to run the management console.
0 u) C2 P9 }% O$ {/ M. R: ]The problem is that only port 8080 is forwarded from your Cloud9
% x. Y. E' H* d, j, Vworkspace, and RabbitMQ’s default port is explained here:
% q! ]! x0 k5 g. A4 ]/ J$ cThe web UI is located at: http://server-name:15672/ To fix, we need to
  N9 u# S$ n7 k7 w2 ~, |modify the configuration to start the web UI at port 8080. Here are
' ~4 j; f$ N: Lthe steps I followed to get that working:
3 K  _( m8 k$ n+ hInstall RabbitMQ (Steps outlined here:
3 u2 ^# {' E9 z$ {http://www.rabbitmq.com/install-debian.html) Enable the management 5 I* s, A' O" I6 d. L  n8 o- A4 ]+ P
console: sudo rabbitmq-plugins enable rabbitmq_management There wasn’t
: i5 T0 k: f* W+ Z5 @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
+ a' x2 }( e5 H4 u: dfound the rabbitmq_management key. There’s already an existing setup + a' {  Q6 J$ v
that’s commented out. I replaced it with:7 |& |' d8 V) F
{listener, [{port, 8080}, 5 v8 x) `+ m/ ]# S6 d2 X
{ip, “0.0.0.0”},
% `7 [1 m2 ^) o! g, j4 x{ssl, false}]}! ^7 E* d6 U' X8 G. h; f8 T( r' d
Then I restarted the RabbitMQ server and visiting my url, i.e.: * D8 `0 e2 Z5 a" E
https://-.c9.io showed me the RabbitMQ 4 d% F6 T; C( s& T: ^
management login screen.
7 K) h  M4 Y$ Z5 xHope this helps!
( G% _# Y& }3 v
2 C1 i- ]. G2 I& R* f, n
 楼主| 发表于 2018-9-4 09:51:15 | 显示全部楼层
{rabbitmq_management,* A1 b- g3 U) U/ {. N7 `2 s
  [
, r; v% R, N- l7 _{listener, [{port,     15672},
+ E; t" i& M' Q$ ^4 i1 R9 ^' F. z: t$ {             {ip,       "192.168.x.x"},- A# Q3 C4 c+ }/ x1 I% \, f( ]/ N! Z& d
             {ssl,     false}: j* s) i9 X) ^' Z+ k4 Q
]},6 ?5 v+ [1 ^6 X+ z
粘进去时候注意括号啥的,如果启动不起来 看日志 添加或者减少括号即可
您需要登录后才可以回帖 登录 | 开始注册

本版积分规则

关闭

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

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

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

GMT+8, 2026-4-8 17:12 , Processed in 0.040687 second(s), 22 queries .

Powered by Discuz! X3.4 Licensed

© 2012-2025 Discuz! Team.

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