- 积分
- 16840
在线时间 小时
最后登录1970-1-1
|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?开始注册
x
遇到一个问题,部署服务器,需要用rabbitmq自带的一个web UI监控组件,但是15672的端口没有对外映射。尝试了几种办法。开始修改rabbitmq.config,rabbitmq-ebv.config,总是不成功,因为修改的是rabbitmq-server的启动端口号,从外面访问的是web UI组件启动的端口号,两个是不一样的。然后尝试的rabbitmqadmin,因为web UI 监控页面也是调用的httpapi ,rabbitmqadmin是从官网下载一个文本文件赋予可执行权限才可,注意你放置这个文件的位置要在你的PATH里面。
4 V% b2 I f: @5 J国外网站显示:
9 y2 m" r6 D" O4 r$ ?: o: CI’m new to RabbitMQ, but after a bit of googling and experimentation, - u x# b2 @# N; h( n
I was able to run the management console.
1 M& I: T3 \& F& B# hThe problem is that only port 8080 is forwarded from your Cloud9
# D& z- Y: d! P. H5 J* s0 M( V Lworkspace, and RabbitMQ’s default port is explained here:9 x5 g' A, ~1 `3 R* m1 d* y
The web UI is located at: http://server-name:15672/ To fix, we need to
6 r s5 w1 z$ N5 `9 B* P2 L1 dmodify the configuration to start the web UI at port 8080. Here are
8 m6 E! k" [5 r' A# d' Rthe steps I followed to get that working:
( `5 ^; }* M* _/ a5 x' ?Install RabbitMQ (Steps outlined here: ) n* N% P# Z1 [2 h
http://www.rabbitmq.com/install-debian.html) Enable the management
3 f4 N& `" Q' ]& N. Iconsole: sudo rabbitmq-plugins enable rabbitmq_management There wasn’t 8 B, ^0 {5 \% y
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 ) k7 O: g& ^, d$ N* b& i
found the rabbitmq_management key. There’s already an existing setup 0 t) n; j% [0 J3 |: {' e3 t
that’s commented out. I replaced it with:; ~ D) Q$ ?# b4 G
{listener, [{port, 8080}, , _* q0 D$ D% F# f7 A6 P& T
{ip, “0.0.0.0”}, " \" ?$ E$ r& I- d7 ]4 T3 {. r; s: u
{ssl, false}]}5 Q) H. v: ~6 B7 N, A$ b
Then I restarted the RabbitMQ server and visiting my url, i.e.:
) d) V0 V" { |https://-.c9.io showed me the RabbitMQ * E! _% H L8 b3 m# ]
management login screen.
; _; L2 u9 K* A* J- xHope this helps!6 j$ D4 ~( \- N' r) r B
4 S/ e s5 a! I
|
|