Search Mirrordocker search rocketmq View image versionIf 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 nnameserverdocker run -d -p 9876:9876 --name rmqserver foxiswho/rocketmq:server-4.5.1 Start the brokerdocker 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 fileNote: 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 brokerdocker restart xxx Start the UI consoleNote: 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 Processdocker ps | grep rocketmq View the UI console
Full Notepad1. 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 RocketMQSource 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:
|
<<: Sample code for implementing image drawer effect with CSS3
>>: Implementing password box verification information based on JavaScript
Table of contents Install Importing components Ba...
Table of contents Partitioning mechanism SELECT q...
How to center your HTML button itself? This is ea...
Table of contents Preliminary work Backend constr...
1. Download MySQL Archive (decompressed version) ...
Code first, then text Copy code The code is as fol...
Product designers face complex and large manufactu...
Table of contents Basic Selector Extensions Attri...
Table of contents 1. What is a closure? 1.2 Memoi...
1. Modify my.cnf #The overall effect is that both...
Abstract: MySQL provides a variety of storage eng...
Table of contents The pitfalls Filling method Wha...
System environment: Windows 7 1. Install Docker D...
1. Copy the configuration file to the user enviro...
Scenario 1. Maintain a citizen system with a fiel...