centos7 安裝rocketmq

苦逼yw發表於2024-03-20

rocketmq 官網地址:https://rocketmq.apache.org/zh/download

1、下載

wget https://dist.apache.org/repos/dist/release/rocketmq/5.2.0/rocketmq-all-5.2.0-bin-release.zip

2、解壓

unzip rocketmq-all-5.2.0-bin-release.zip -d /data/

3、配置broker,新增brokerIP1和namesrvAddr

vim /data/rocketmq-all-5.2.0-bin-release/conf/broker.conf

brokerClusterName = DefaultCluster
brokerName = broker-a
brokerId = 0
deleteWhen = 04
fileReservedTime = 48
brokerRole = ASYNC_MASTER
flushDiskType = ASYNC_FLUSH

brokerIP1=192.168.20.144
namesrvAddr=192.168.20.144:9876

相關文章