Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Steps for docker to build a rabbitmq cluster environment

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly explains "the steps of docker to build rabbitmq cluster environment". Interested friends may wish to take a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn the steps for docker to build a rabbitmq cluster environment.

Download the image

Use bijukunjummen for this image.

Git clone https://github.com/bijukunjummen/docker-rabbitmq-cluster.git

Running

Start the cluster

Cd docker-rabbitmq-cluster/clusterdocker-compose up-d.Status: Downloaded newer image for bijukunjummen/rabbitmq-server:latestdocker.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_1Creating cluster_rabbit2_1Creating cluster_rabbit3_1

Three nodes are started by default

Rabbit1: image: bijukunjummen/rabbitmq-server hostname: rabbit1 ports:-"5672bijukunjummen/rabbitmq-server hostname: rabbit1 ports"-"15672 rabbit2: image: bijukunjummen/rabbitmq-server hostname: rabbit2 links:-rabbit1 environment:-CLUSTERED=true-CLUSTER_WITH=rabbit1-RAM_NODE=true ports: -" 5673bijukunjummen/rabbitmq-server hostname 5672 "rabbit3: image: bijukunjummen/rabbitmq-server hostname: rabbit3 links:-rabbit1-rabbit2 environment:-CLUSTERED=true-CLUSTER_WITH=rabbit1 ports: -" 5674pur5672 "

View

Docker@default:~$ docker psCONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMESba5f665bb213 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 minutes ago Up 5674-> 5672/tcp cluster_rabbit3_1b9466e206b2b 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 opt/rabb 5673-> 5672/tcp, 0.0.0.0 opt/rabb 15673-> 15672/tcp cluster_rabbit2_1b733201aeadf bijukunjummen/rabbitmq-server "/ bin/sh-c / opt/rabb" 10 minutes ago Up 10 minutes 4369/tcp 0.0.0.0 5672/tcp 5672-> 5672/tcp, 9100-9105/tcp, 0.0.0.0 15672/tcp 15672-> 25672/tcp cluster_rabbit1_188196436c434 daocloud.io/daocloud/daomonit "/ usr/local/bin/daomo" 37 hours ago Up 2 hours daomonit

Visit

Http://192.168.99.100:15672, pop-up login interface

Enter guest/guest

At this point, I believe you have a deeper understanding of "the steps for docker to build a rabbitmq cluster environment". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report