找回密码
 注册
查看: 4670|回复: 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里面。
9 R* S3 c/ R; M% H国外网站显示:) d. E$ ]8 L+ e' v. ]4 }/ X2 c$ s
I’m new to RabbitMQ, but after a bit of googling and experimentation,
, o: k, x+ h5 R+ f2 N- fI was able to run the management console.
' l# {/ i7 O4 G# @; hThe problem is that only port 8080 is forwarded from your Cloud9 % w  y9 P2 A- V2 R; d- S$ m' l
workspace, and RabbitMQ’s default port is explained here:( W  w' L. g" I% F* X  F
The web UI is located at: http://server-name:15672/ To fix, we need to
, A4 d) o6 d+ \6 d! {& smodify the configuration to start the web UI at port 8080. Here are
6 |4 H8 [. ]+ s' \3 k. u/ athe steps I followed to get that working:
3 g; [( d4 m0 v7 V* q! I$ i; G( qInstall RabbitMQ (Steps outlined here: % `; ~0 }% ?! B5 B0 I/ }8 @5 k" D9 u* Y
http://www.rabbitmq.com/install-debian.html) Enable the management ) T% s0 I8 c# R$ {; H- A
console: sudo rabbitmq-plugins enable rabbitmq_management There wasn’t 8 j1 v" H3 E$ H2 j! l( z/ a5 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 ; P- L8 q7 A' ?, h$ b$ G: ?' [
found the rabbitmq_management key. There’s already an existing setup
' b" F/ y8 K" I8 Uthat’s commented out. I replaced it with:
& Z* @2 e" K' b& I. O{listener, [{port, 8080}, " D2 s, w# W, P
{ip, “0.0.0.0”},
8 V/ d. x2 I; D1 d8 M/ ~# I; F" @{ssl, false}]}) {8 q9 O) O3 w* y( }5 d+ M2 ?+ [
Then I restarted the RabbitMQ server and visiting my url, i.e.: 2 O5 Z# ]( A: P$ {9 O( x
https://-.c9.io showed me the RabbitMQ
/ q; W# `6 }+ G' E* lmanagement login screen.  z" f& u+ [# @" j& D" l$ ^+ j
Hope this helps!
! i1 P9 _# C9 |) I- [2 i) L& {
% {9 {+ c6 C" A# n0 U" ~

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
 楼主| 发表于 2018-9-4 09:51:15 | 显示全部楼层
{rabbitmq_management,
/ a) {$ t2 K! C* j  [: K1 F" m) `" w3 [( j. h
{listener, [{port,     15672},$ I, m& ]5 b- F' Q5 c
             {ip,       "192.168.x.x"},1 M6 E. @- G% b' W" _& _
             {ssl,     false}  y9 S2 P8 k4 f9 ]/ n" v9 `
]},
- k8 K# t. ?3 _# s) E2 T' ~粘进去时候注意括号啥的,如果启动不起来 看日志 添加或者减少括号即可
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

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

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

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