In addition to Weibo, there is also WeChat
Please pay attention

WeChat public account
Shulou
2025-11-10 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
This article introduces how to install stand-alone RocketMQ in Docker, the content is very detailed, interested friends can refer to, hope to be helpful to you.
First, install Docker
Second, install Docker-Compose
Docker-compose installation
Third, install RocketMQ
Github address
Dockerhub address
Download the installation configuration file $git clone https://github.com/foxiswho/docker-rocketmq.git3.2 and move it to the brokercnf folder $cd. / docker-rocketmq/rmq/rmq/brokerconf/3.3 modify the configuration file $vim broker.conf
Change brokerIP1=192.168.25.142 to host IP, because the default assigned network segment of Docker0 is not convenient for external debugging.
3.4 deployment 3.4.1 move to the docker-compose.yml file location $cd. / docker-rocketmq/rmq3.4.2 configure vim docker-compose.yml as modified
Docker-compose.yml
Version: '3.7'services: rmqnamesrv: image: foxiswho/rocketmq:server container_name: rmqnamesrv ports:-9876 JAVA_OPT_EXT: -. / rmq/logs:/opt/logs -. / rmq/store:/opt/store environment: JAVA_OPTS: "- Duser.home=/opt" JAVA_OPT_EXT: "- Xms128m-Xmx128m-Xmn128m" networks: rmq: Aliases:-rmqnamesrv rmqbroker: image: foxiswho/rocketmq:broker container_name: rmqbroker ports:-10909 image-10911 volumes: -. / rmq/logs:/opt/logs -. / rmq/store:/opt/store -. / rmq/brokerconf/broker.conf:/etc/rocketmq/broker.conf environment: NAMESRV_ADDR: "rmqnamesrv:9876 "JAVA_OPTS:"-Duser.home=/opt "JAVA_OPT_EXT:"-server-Xms128m-Xmx128m-Xmn128m "command: mqbroker-c / etc/rocketmq/broker.conf depends_on:-rmqnamesrv networks: rmq: aliases:-rmqbroker rmqconsole: image: styletang/rocketmq-console-ng container_name: rmqconsole ports:-8180 JAVA_OPT_EXT 8080 environment: JAVA_OPTS: "- Drocketmq.namesrv.addr=rmqnamesrv:9876-Dcom.rocketmq.sendMessageWithVIPChannel=false" depends_on:-rmqnamesrv networks: rmq: aliases:-rmqconsolenetworks: rmq: name: rmq driver: bridge3.4.3 run container $docker-compose-f. / docker-compose.yml up-d3.4.4 View container status $docker-compose-f. / docker-compose.yml ps3.4.5 View the container log $docker-compose-f. / docker-compose.yml logs rmqnamesrv | rmqbroker | rmqconsole4. Open the operation and maintenance page
Http://192.168.25.142:8180
On how to install stand-alone RocketMQ in Docker to share here, I hope the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.
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.

The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope





About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.