找回密码
 注册
查看: 4668|回复: 1

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

[复制链接]

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
发表于 2018-9-4 09:50:01 | 显示全部楼层 |阅读模式
遇到一个问题,部署服务器,需要用rabbitmq自带的一个web UI监控组件,但是15672的端口没有对外映射。尝试了几种办法。开始修改rabbitmq.config,rabbitmq-ebv.config,总是不成功,因为修改的是rabbitmq-server的启动端口号,从外面访问的是web UI组件启动的端口号,两个是不一样的。然后尝试的rabbitmqadmin,因为web UI 监控页面也是调用的httpapi ,rabbitmqadmin是从官网下载一个文本文件赋予可执行权限才可,注意你放置这个文件的位置要在你的PATH里面。+ L, m; q' b# |  z8 ]8 H7 P
国外网站显示:
0 o4 ?; ]3 ]* gI’m new to RabbitMQ, but after a bit of googling and experimentation,
( m- ~9 E8 K# g3 {5 c% {, MI was able to run the management console./ a" k# |( h" a$ d( @: i! \
The problem is that only port 8080 is forwarded from your Cloud9
) g! ]# {% w& k8 Mworkspace, and RabbitMQ’s default port is explained here:2 s; z+ ?, W4 i' q$ U# ?) `! s: q- _
The web UI is located at: http://server-name:15672/ To fix, we need to
5 i$ V* E$ l0 `7 Z& K# cmodify the configuration to start the web UI at port 8080. Here are 3 L  U1 z$ S: p' O
the steps I followed to get that working:! a- x8 W" t5 R* T3 x
Install RabbitMQ (Steps outlined here: ! f) J3 Y7 `7 y. M3 S
http://www.rabbitmq.com/install-debian.html) Enable the management
1 u! l5 q6 o* l2 Q  C$ _console: sudo rabbitmq-plugins enable rabbitmq_management There wasn’t 0 u, E8 z) Z: m# D" `
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
# p7 Z1 B% G, y$ o( Xfound the rabbitmq_management key. There’s already an existing setup - z5 Y$ B( {1 [8 c
that’s commented out. I replaced it with:
0 t3 ]: ~; r( V$ y* Z{listener, [{port, 8080},
3 t  R& I) b; Q1 H{ip, “0.0.0.0”}, , c* ]0 j: `/ C
{ssl, false}]}0 O0 x& f; Z2 n6 ~* f
Then I restarted the RabbitMQ server and visiting my url, i.e.: $ [' Y. r4 a% ?' w% T
https://-.c9.io showed me the RabbitMQ $ _: E1 G. W( C
management login screen.
. x+ t0 {+ H, l) ?. HHope this helps!2 o* c; l7 a6 R( w
$ X8 B, E1 V6 d. u: H: e( G

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
 楼主| 发表于 2018-9-4 09:51:15 | 显示全部楼层
{rabbitmq_management,
1 k6 b; |9 u# f( m- x( g0 J  [- O( h! M8 `4 N: E; i7 O3 V3 \+ J
{listener, [{port,     15672},
* ]& ~  i) P% f3 o' Z& G             {ip,       "192.168.x.x"},
! u( v3 B2 d8 Y             {ssl,     false}
- G6 J% F8 e* a' H+ F]},
. |2 l& X0 E0 G8 P( G粘进去时候注意括号啥的,如果启动不起来 看日志 添加或者减少括号即可
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-6-12 01:23 , Processed in 0.017860 second(s), 22 queries .

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

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