- 积分
- 16843
在线时间 小时
最后登录1970-1-1
|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?开始注册
x
遇到一个问题,部署服务器,需要用rabbitmq自带的一个web UI监控组件,但是15672的端口没有对外映射。尝试了几种办法。开始修改rabbitmq.config,rabbitmq-ebv.config,总是不成功,因为修改的是rabbitmq-server的启动端口号,从外面访问的是web UI组件启动的端口号,两个是不一样的。然后尝试的rabbitmqadmin,因为web UI 监控页面也是调用的httpapi ,rabbitmqadmin是从官网下载一个文本文件赋予可执行权限才可,注意你放置这个文件的位置要在你的PATH里面。/ v" j' ~1 {0 z. H
国外网站显示:
' S$ u: V/ h* n+ r2 Q- z# J2 a5 qI’m new to RabbitMQ, but after a bit of googling and experimentation,
: b. Z! _; E! r# n) j$ W" NI was able to run the management console.
O# z- ^& y9 [9 aThe problem is that only port 8080 is forwarded from your Cloud9 * S- M1 ~$ @) H8 v& f+ ?6 q# n3 j/ o
workspace, and RabbitMQ’s default port is explained here:
, ^8 L7 c9 C o9 c2 M% z: l0 z' gThe web UI is located at: http://server-name:15672/ To fix, we need to
/ {& v0 V: q' t( k# N8 Ymodify the configuration to start the web UI at port 8080. Here are
' i3 r* I, S& pthe steps I followed to get that working:9 g, q/ }$ e( G3 m# D0 v7 X
Install RabbitMQ (Steps outlined here:
0 l: \# O) h* M' g, qhttp://www.rabbitmq.com/install-debian.html) Enable the management
/ @2 P0 `5 n6 E. ]console: sudo rabbitmq-plugins enable rabbitmq_management There wasn’t
' J) V" m0 a0 p: U3 i$ `+ R) ma 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 $ `* u# Z5 [8 @ V4 n
found the rabbitmq_management key. There’s already an existing setup 7 q! J2 C+ r, `5 D/ M9 N
that’s commented out. I replaced it with:
! H; Y# Z; c) D+ ^{listener, [{port, 8080}, ! T. `, p8 r9 [0 h% _$ D s
{ip, “0.0.0.0”}, 6 Z( v c( |0 n% c7 i
{ssl, false}]}( y9 d6 N; o* e4 O1 |1 O E
Then I restarted the RabbitMQ server and visiting my url, i.e.:
6 [2 S7 C P5 }0 \+ H, D# Ihttps://-.c9.io showed me the RabbitMQ 0 L) l2 Y5 |, T
management login screen.
0 ]# Z3 I6 v, h+ h0 L uHope this helps!
+ M# n3 B9 Z1 h6 a% p% [
5 @1 ^% v" O6 B; ?; r0 k9 s& X |
|