|
|
遇到一个问题,部署服务器,需要用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
|
|