In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces the relevant knowledge of "how to use Docker container to deploy rocketmq stand-alone". The editor shows you the operation process through an actual case. The operation method is simple, fast and practical. I hope this article "how to use Docker container to deploy rocketmq stand-alone machine" can help you solve the problem.
Query image docker search rocketmqNAME DESCRIPTION STARS OFFICIAL AUTOMATEDfoxiswho/rocketmq rocketmq 69 rocketmqinc/rocketmq Image repository for Apache RocketMQ 54 Styletang/rocketmq-console-ng rocketmq-console-ng 37 apacherocketmq/rocketmq Docker Image for Apache RocketMQ 21 apache/rocketmq pull Image docker pull foxiswho/rocketmq:server # mq-server...docker pull foxiswho/rocketmq:broker # mq-broker...docker pull styletang/rocketmq-console-ng # client... Create namesrv data storage path mkdir-p / var/local/docker/rocketmq/namesrv/store / var/log/docker/rocketmq/namesrv build namesrv container docker run-d\-restart=always\-- name rmqnamesrv\-p 9876 foxiswho/rocketmq 9876\-v / var/log/docker/rocketmq/namesrv:/var/log\-v / var/local/docker/rocketmq/namesrv/store:/var/store\-e "MAX_POSSIBLE_HEAP=100000000"\ foxiswho/rocketmq\ sh mqnamesrv create broker data store The storage path mkdir-p / var/local/docker/rocketmq/broker/store / var/log/docker/rocketmq/broker creates the broker configuration file mkdir-p / etc/docker/rocketmq/conftouch broker.confvi broker.confbroker.conf with the following contents: name of the cluster to which vim / docker/rocketmq/conf/broker.conf# belongs If more nodes can be configured with multiple brokerClusterName = DefaultCluster#broker names, master and slave use the same name, indicating that their master-slave relationship brokerName = broker-a#0 indicates Master, and a value greater than 0 indicates when the message is deleted. The default is the length of time for deleteWhen = 0 minutes to keep messages on disk at 4: 00 a.m., in hours, fileReservedTime = 4 minutes has three values: SYNC_MASTER,ASYNC_MASTER,SLAVE Synchronous and asynchronous indicate the mechanism of synchronous data between Master and Slave; brokerRole = ASYNC_MASTER# flushing policy. Values: ASYNC_FLUSH,SYNC_FLUSH means synchronous and asynchronous flushing; SYNC_FLUSH message is returned to the disk only after it is written to disk, and ASYNC_FLUSH does not need it. FlushDiskType = ASYNC_FLUSH# set the ip address of the server where the broker node is located brokerIP1 = 192.168.1.1 # Note: change your IP address to build the broker container docker run-d\-restart=always\-name rmqbroker\-- link rmqnamesrv:namesrv\-p 10911 link rmqnamesrv:namesrv 10911\-p 10909 var/local/docker/rocketmq/broker/store:/var/store\-v / var/log/docker/rocketmq/broker:/var/logs\ -v / etc/docker/rocketmq/conf/broker.conf:/etc/rocketmq/conf/broker.conf\-e "NAMESRV_ADDR=namesrv:9876"\-e "MAX_POSSIBLE_HEAP=200000000"\ foxiswho/rocketmq:broker\ sh mqbroker-c / etc/rocketmq/conf/broker.conf construct rocketmq-console-ngdocker run-d\-- name rmqconsole\-p 8180 MAX_POSSIBLE_HEAP=200000000 8080\-- restart=always\-- link rmqserver:namesrv\-e "JAVA_OPTS=-Drocketmq.namesrv.addr=namesrv:9876-Dcom.rocketmq. This is the end of sendMessageWithVIPChannel=false "\-t styletang/rocketmq-console-ng" on "how to deploy a rocketmq stand-alone using Docker containers". Thank you for your reading. If you want to know more about the industry, you can follow the industry information channel. The editor will update different knowledge points for you every day.
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.