一、查看docker-compose版本
docker-compose --version
二、如果未安装docker-compose,则执行以下命令安装
apt install docker-compose
三、进入/usr/local,建立如下目录结构
rocketmq
├── broker
│ └── conf
│ └── broker.conf
│
└── docker-compose.yml
四、在broker.conf文件中配置broker启动参数
# 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.0
# (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 "AS IS" 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 = DefaultCluster
brokerName = broker-a
brokerId = 0
deleteWhen = 04
fileReservedTime = 48
brokerRole = ASYNC_MASTER
flushDiskType = ASYNC_FLUSH
# 配置外网可以访问的IP地址(比如虚拟机IP,而不是容器IP)
brokerIP1 = ztm.docker


2万+

被折叠的 条评论
为什么被折叠?



