易陆发现互联网技术论坛

 找回密码
 开始注册
查看: 4667|回复: 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里面。/ v" j' ~1 {0 z. H
国外网站显示:
' S$ u: V/ h* n+ r2 Q- z# J2 a5 qI’m new to RabbitMQ, but after a bit of googling and experimentation,
: b. Z! _; E! r# n) j$ W" NI was able to run the management console.
  O# z- ^& y9 [9 aThe problem is that only port 8080 is forwarded from your Cloud9 * S- M1 ~$ @) H8 v& f+ ?6 q# n3 j/ o
workspace, and RabbitMQ’s default port is explained here:
, ^8 L7 c9 C  o9 c2 M% z: l0 z' gThe web UI is located at: http://server-name:15672/ To fix, we need to
/ {& v0 V: q' t( k# N8 Ymodify the configuration to start the web UI at port 8080. Here are
' i3 r* I, S& pthe steps I followed to get that working:9 g, q/ }$ e( G3 m# D0 v7 X
Install RabbitMQ (Steps outlined here:
0 l: \# O) h* M' g, qhttp://www.rabbitmq.com/install-debian.html) Enable the management
/ @2 P0 `5 n6 E. ]console: sudo rabbitmq-plugins enable rabbitmq_management There wasn’t
' J) V" m0 a0 p: U3 i$ `+ R) ma 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 $ `* u# Z5 [8 @  V4 n
found the rabbitmq_management key. There’s already an existing setup 7 q! J2 C+ r, `5 D/ M9 N
that’s commented out. I replaced it with:
! H; Y# Z; c) D+ ^{listener, [{port, 8080}, ! T. `, p8 r9 [0 h% _$ D  s
{ip, “0.0.0.0”}, 6 Z( v  c( |0 n% c7 i
{ssl, false}]}( y9 d6 N; o* e4 O1 |1 O  E
Then I restarted the RabbitMQ server and visiting my url, i.e.:
6 [2 S7 C  P5 }0 \+ H, D# Ihttps://-.c9.io showed me the RabbitMQ 0 L) l2 Y5 |, T
management login screen.
0 ]# Z3 I6 v, h+ h0 L  uHope this helps!
+ M# n3 B9 Z1 h6 a% p% [
5 @1 ^% v" O6 B; ?; r0 k9 s& X
 楼主| 发表于 2018-9-4 09:51:15 | 显示全部楼层
{rabbitmq_management,4 n/ l# `& K( H* K0 M9 b% X
  [% R) o3 _+ {* K7 p
{listener, [{port,     15672},7 I3 k$ O$ T' g0 D
             {ip,       "192.168.x.x"},. y* ^' [, x, @- _
             {ssl,     false}7 @& J7 U; B, D9 a6 g2 c- z
]},- T% u3 q* X/ \' F; _
粘进去时候注意括号啥的,如果启动不起来 看日志 添加或者减少括号即可
您需要登录后才可以回帖 登录 | 开始注册

本版积分规则

关闭

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

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

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

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

Powered by Discuz! X3.4 Licensed

© 2012-2025 Discuz! Team.

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