In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
This article mainly introduces how to install rocketmq under Docker Desktop, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let the editor take you to understand it.
Install Docker Desktop
Download address: Docker Desktop for Mac and Windows | Docker
Confirm that the Docker-compose command is available
Docker-compose-version
View docker image
Docker search rocketmq
Download the image
Apacherocketmq/rocketmq
Docker pull apacherocketmq/rocketmq
Write yml files
Docker-compose.yml
Services: namesrv: image: apacherocketmq/rocketmq container_name: rmqnamesrv ports:-9876 volumes:-D:/rocketmq/namesrv/logs:/home/rocketmq/logs command: sh mqnamesrv broker: image: apacherocketmq/rocketmq container_name: rmqbroker ports:-10909-10911 volumes:-D:/rocketmq/broker/ Logs:/home/rocketmq/logs-D:/rocketmq/broker/store:/home/rocketmq/store-D:/rocketmq/broker/conf/broker.conf:/home/rocketmq/rocketmq-4.6.0/conf/broker.conf environment: NAMESRV_ADDR: "namesrv:9876" JAVA_OPTS: "- Duser.home=/opt" JAVA_OPT_EXT: "- server-Xms128m-Xmx128m-Xmn128m" command: Sh mqbroker-n namesrv:9876-c.. / conf/broker.conf depends_on:-namesrv rmqconsole: image: styletang/rocketmq-console-ng container_name: rmqconsole ports:-18080 Dcom.rocketmq.sendMessageWithVIPChannel=false 8080 environment: JAVA_OPTS: "- Drocketmq.namesrv.addr=namesrv:9876-Dcom.rocketmq.sendMessageWithVIPChannel=false" depends_on:-namesrv
Tag is not specified in docker, installation time is 2021-10-13, using latest, it is 4.6.0, so modify the above configuration file to 4.6.0 directory
Configure broker.conf under the D:/rocketmq/broker/conf/ directory
-D:/rocketmq/broker/conf/broker.conf:/home/rocketmq/rocketmq-4.6.0/conf/broker.conf
Broker.conf file
# Licensed to the Apache Software Foundation (ASF) under one or more# contributor license agreements. See the NOTICE file distributed with# this work for additional information regarding copyright ownership.# The ASF licenses this file to You under the Apache License, Version 2. (the "License"); you may not use this file except in compliance with# the License. You may obtain a copy of the License at## http://www.apache.org/licenses/LICENSE-2.0## Unless required by applicable law or agreed to in writing, software# distributed under the License is distributed on an "ASIS" BASIS,# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.# See the License for the specific language governing permissions and# limitations under the License.brokerClusterName = DefaultClusterbrokerName = broker-abrokerId = 0deleteWhen = 04fileReservedTime = 48brokerRole = ASYNC_MASTERflushDiskType = ASYNC_FLUSH# when using docker-compose deployment backend The same LAN does not need to configure brockerIP1brokerIP1= native ip to create and start the container
Run in the same directory as yml
Docker-compose up-d
Visualization client (default port number 8080)
The port number has been changed to 18080 in yml
Http://localhost:18080/#/
Thank you for reading this article carefully. I hope the article "how to install rocketmq under Docker Desktop" shared by the editor will be helpful to everyone. At the same time, I also hope you will support us and pay attention to the industry information channel. More related knowledge is waiting for you 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: 231
*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.