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