Detailed explanation of the deployment process of Docker Alibaba Cloud RocketMQ 4.5.1

Detailed explanation of the deployment process of Docker Alibaba Cloud RocketMQ 4.5.1

Search Mirror

docker search rocketmq

View image version

If you want to view other images, just replace the image name foxiswho/rocketmq with other images.

curl https://registry.hub.docker.com/v1/repositories/foxiswho/rocketmq/tags\
| tr -d '[\[\]" ]' | tr '}' '\n'\
| awk -F: -v image='foxiswho/rocketmq' '{if(NR!=NF && $3 != ""){printf("%s:%s\n",image,$3)}}' 

Start nnameserver

docker run -d -p 9876:9876 --name rmqserver foxiswho/rocketmq:server-4.5.1 

Start the broker

docker run -d -p 10911:10911 -p 10909:10909\
 --name rmqbroker --link rmqserver:namesrv\
 -e "NAMESRV_ADDR=namesrv:9876" -e "JAVA_OPTS=-Duser.home=/opt"\
 -e "JAVA_OPT_EXT=-server -Xms128m -Xmx128m"\
 foxiswho/rocketmq:broker-4.5.1

Enter the broker container and modify the configuration file

Note: modify your own cloud server public network ip

docker exec -it container id /bin/bash
# Enter the directory and find the configuration file broker.conf
cd /etc/rocketmq
# Modify broker.conf
vim broker.conf
# Add a line at the end to add the server public IP
brokerIP1=47.116.143.16

Restart the broker

docker restart xxx 

Start the UI console

Note: modify your own cloud server public network ip

docker run -d --name rmqconsole -e "JAVA_OPTS=-Drocketmq.namesrv.addr=47.116.143.16:9876 -Dcom.rocketmq.sendMessageWithVIPChannel=false" -p 8080:8080 -t styletang/rocketmq-console-ng 

View Process

docker ps | grep rocketmq

View the UI console

47.116.143.16:8080

Full Notepad

1. Search image docker search rocketmq

2. If you want to view other images, just replace the image name foxiswho/rocketmq with other images. curl https://registry.hub.docker.com/v1/repositories/foxiswho/rocketmq/tags\
| tr -d '[\[\]" ]' | tr '}' '\n'\
| awk -F: -v image='foxiswho/rocketmq' '{if(NR!=NF && $3 != ""){printf("%s:%s\n",image,$3)}}'

3. Start nnameserver
docker run -d -p 9876:9876 --name rmqserver foxiswho/rocketmq:server-4.5.1

4. Start the broker
docker run -d -p 10911:10911 -p 10909:10909\
 --name rmqbroker --link rmqserver:namesrv\
 -e "NAMESRV_ADDR=namesrv:9876" -e "JAVA_OPTS=-Duser.home=/opt"\
 -e "JAVA_OPT_EXT=-server -Xms128m -Xmx128m"\
 foxiswho/rocketmq:broker-4.5.1


 5. Enter the broker container and modify the configuration file # Enter the container docker exec -it container id /bin/bash
# Enter the directory and find the configuration file broker.conf
cd /etc/rocketmq
# Modify broker.conf
vim broker.conf
# Add a line at the end to add the server public IP
brokerIP1=47.116.143.16

6. Restart the broker
docker restart xxx

7. Start the UI console and change your public IP address.

docker run -d --name rmqconsole -e "JAVA_OPTS=-Drocketmq.namesrv.addr=47.116.143.16:9876 -Dcom.rocketmq.sendMessageWithVIPChannel=false" -p 8080:8080 -t styletang/rocketmq-console-ng

8. View the UI console 47.116.143.16:8080

SpringBoot integrates RocketMQ

Source code download:

http://xiazai.jb51.net/202105/yuanma/springbootrocket_jb51.rar

RocketMQ from Beginner to Mastery

The above is the details of Docker deployment of Alibaba Cloud RocketMQ 4.5.1. For more information about Docker deployment of Alibaba Cloud RocketMQ 4.5.1, please pay attention to other related articles on 123WORDPRESS.COM!

You may also be interested in:
  • Implementation example of Docker rocketmq deployment

<<:  Sample code for implementing image drawer effect with CSS3

>>:  Implementing password box verification information based on JavaScript

Recommend

How to match the size of text in web design: small text, big experience

With the rise of mobile terminals such as iPad, p...

Using NTP for Time Synchronization in Ubuntu

NTP is a TCP/IP protocol for synchronizing time o...

JavaScript adds prototype method implementation for built-in objects

The order in which objects call methods: If the m...

Practice using Golang to play with Docker API

Table of contents Installing the SDK Managing loc...

MySQL 5.7.17 installation and configuration graphic tutorial

Features of MySQL: MySQL is a relational database...

Problems and solutions encountered when installing mininet on Ubuntu 16.04.4LTS

Mininet Mininet is a lightweight software defined...

js native waterfall flow plug-in production

This article shares the specific code of the js n...

How to customize at and cron scheduled tasks in Linux

There are two types of scheduled tasks in Linux s...

Detailed explanation of MySql automatic truncation example

Detailed explanation of MySql automatic truncatio...

Use dockercompose to build springboot-mysql-nginx application

In the previous article, we used Docker to build ...

How to clear the cache after using keep-alive in vue

What is keepalive? In normal development, some co...

Flex layout realizes left text overflow and omits right text adaptation

I want to achieve a situation where the width of ...

Why MySQL does not recommend using subqueries and joins

To do a paginated query: 1. For MySQL, it is not ...

Let’s take a look at JavaScript precompilation (summary)

JS running trilogy js running code is divided int...

Specific operations of MYSQL scheduled clearing of backup data

1|0 Background Due to project requirements, each ...