圆月山庄资源网 Design By www.vgjia.com
本文主要讲述如何用docker搭建rabbitmq的集群。分享给大家,希望此文章对各位有所帮助。
下载镜像
采用bijukunjummen该镜像。
git clone https://github.com/bijukunjummen/docker-rabbitmq-cluster.git
运行
启动集群
cd docker-rabbitmq-cluster/cluster docker-compose up -d ...... Status: Downloaded newer image for bijukunjummen/rabbitmq-server:latest docker.io/bijukunjummen/rabbitmq-server: this image was pulled from a legacy registry. Important: This registry version will not be supported in future versions of docker. Creating cluster_rabbit1_1 Creating cluster_rabbit2_1 Creating cluster_rabbit3_1
默认启动了三个节点
rabbit1: image: bijukunjummen/rabbitmq-server hostname: rabbit1 ports: - "5672:5672" - "15672:15672" rabbit2: image: bijukunjummen/rabbitmq-server hostname: rabbit2 links: - rabbit1 environment: - CLUSTERED=true - CLUSTER_WITH=rabbit1 - RAM_NODE=true ports: - "5673:5672" - "15673:15672" rabbit3: image: bijukunjummen/rabbitmq-server hostname: rabbit3 links: - rabbit1 - rabbit2 environment: - CLUSTERED=true - CLUSTER_WITH=rabbit1 ports: - "5674:5672"
查看
docker@default:~$ docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES ba5f665bb213 bijukunjummen/rabbitmq-server "/bin/sh -c /opt/rabb" 10 minutes ago Up 10 minutes 4369/tcp, 9100-9105/tcp, 15672/tcp, 25672/tcp, 0.0.0.0:5674->5672/tcp cluster_rabbit3_1 b9466e206b2b bijukunjummen/rabbitmq-server "/bin/sh -c /opt/rabb" 10 minutes ago Up 10 minutes 4369/tcp, 9100-9105/tcp, 25672/tcp, 0.0.0.0:5673->5672/tcp, 0.0.0.0:15673->15672/tcp cluster_rabbit2_1 b733201aeadf bijukunjummen/rabbitmq-server "/bin/sh -c /opt/rabb" 10 minutes ago Up 10 minutes 4369/tcp, 0.0.0.0:5672->5672/tcp, 9100-9105/tcp, 0.0.0.0:15672->15672/tcp, 25672/tcp cluster_rabbit1_1 88196436c434 daocloud.io/daocloud/daomonit "/usr/local/bin/daomo" 37 hours ago Up 2 hours daomonit
访问
http://192.168.99.100:15672,弹出登陆界面
输入guest/guest
参考
docker-rabbitmq-cluster
tutum/rabbitmq
以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持。
圆月山庄资源网 Design By www.vgjia.com
广告合作:本站广告合作请联系QQ:858582 申请时备注:广告合作(否则不回)
免责声明:本站文章均来自网站采集或用户投稿,网站不提供任何软件下载或自行开发的软件! 如有用户或公司发现本站内容信息存在侵权行为,请邮件告知! 858582#qq.com
免责声明:本站文章均来自网站采集或用户投稿,网站不提供任何软件下载或自行开发的软件! 如有用户或公司发现本站内容信息存在侵权行为,请邮件告知! 858582#qq.com
圆月山庄资源网 Design By www.vgjia.com
暂无评论...
更新日志
2024年09月06日
2024年09月06日
- Casiopea-P4-RightNow(2024,HatsUnlimited)[24-96]
- JohnDaniel-ACalling(2024)[24-44,1]
- FatProduce-FreshSqueeze(2024)[FLAC](24bit-44.1kHz)
- 【电影原声】《岁月神偷·电影原声大碟》[FLAC+CUE]
- 郑秀文《Listen To Mi》[FLAC/分轨]201.2MB]
- 郑秀文《Dream》CD[FLAC/分轨][242.5MB]
- 郑秀文《我们都是这样长大的》[WAV+CUE/分轨][385.9MB]
- LisaBatiashvili-Bach(2014)[24-44]flac
- 徐玮1992-不平凡的心[台湾首版][WAV+CUE]
- 王菲.2012-《因为爱情(HQCD)2CD》[低速原抓WAV+CUE]
- 郑秀文《SAMMI BY MY SIDE BIRTHDAY GIG LIVE》蓝光版[WAV+CUE/分轨][3.2GMB]
- 郑秀文《SUPREME SACD》欧洲限量版[WAV+CUE/分轨][1GMB]
- 郑秀文《BELIEVE IN MI 3CD》香港首版[WAV+CUE/分轨][1.8GMB]
- 陈百强2000-一生紫爱3CD[华纳][WAV+CUE]
- 中国音乐地图之听见新疆锡伯族民间歌曲乐曲集2020[WAV+分轨]