找回密码
 注册
查看: 4671|回复: 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里面。" }1 g0 W$ Z( X: K; p( i/ b; y
国外网站显示:$ N( A( Q( G2 I, ^8 X  w
I’m new to RabbitMQ, but after a bit of googling and experimentation, 5 ~5 @$ L/ N( j$ u8 O- n
I was able to run the management console.
$ P9 c5 X! U) Y- AThe problem is that only port 8080 is forwarded from your Cloud9
$ U( ~. D! v9 Qworkspace, and RabbitMQ’s default port is explained here:* A, g; A6 Y6 G* L9 |4 ~
The web UI is located at: http://server-name:15672/ To fix, we need to
' T% D: a. W9 v& j' m$ j3 Imodify the configuration to start the web UI at port 8080. Here are 2 T% |# m( m. z/ f! L5 Z* u# Q
the steps I followed to get that working:/ o8 d8 e. h' f9 {. l
Install RabbitMQ (Steps outlined here: 5 h, v& Z; K) ]: ]/ C8 v
http://www.rabbitmq.com/install-debian.html) Enable the management ) U% D1 [& O5 V2 y+ [- R/ B
console: sudo rabbitmq-plugins enable rabbitmq_management There wasn’t " |, T( o4 d$ `8 |6 `5 e
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
! }7 G3 ?6 W3 q6 J+ p, gfound the rabbitmq_management key. There’s already an existing setup + M" ~& {- R1 g, Y$ \
that’s commented out. I replaced it with:$ A# {4 `. q  Y4 ~
{listener, [{port, 8080},
8 |) O# S. l8 N( T! _{ip, “0.0.0.0”}, ; k% M$ v* o! p- b; Y
{ssl, false}]}
7 B) V3 w7 G% O  m" cThen I restarted the RabbitMQ server and visiting my url, i.e.:
' J; q$ o4 {: X& j3 Nhttps://-.c9.io showed me the RabbitMQ 8 O" h8 n; ^- a+ G' O
management login screen.
& a- U, @. a: {9 H+ \Hope this helps!3 {. ~* I- m& X9 _
( w, h6 P% W9 l  M$ |1 \

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
 楼主| 发表于 2018-9-4 09:51:15 | 显示全部楼层
{rabbitmq_management,
2 c  o( D) `" B3 T# q$ R$ f! g- ?$ A# K  [
8 d0 @0 x. V% s; m{listener, [{port,     15672},  K  r% l& J% o* {3 R: e
             {ip,       "192.168.x.x"},7 v( p0 k" u4 m5 ]" Q) @
             {ssl,     false}
/ v2 u. {1 d6 L  ^]},' X/ n# t: }/ V0 i8 R. O  {+ q
粘进去时候注意括号啥的,如果启动不起来 看日志 添加或者减少括号即可
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-6-12 02:38 , Processed in 0.073323 second(s), 22 queries .

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

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