install

cd /opt 
#https://archive.apache.org/dist/rocketmq/4.9.2/rocketmq-all-4.9.2-bin-release.zip
wget https://mirrors.tuna.tsinghua.edu.cn/apache/rocketmq/4.9.2/rocketmq-all-4.9.2-bin-release.zip
unzip rocketmq-all-4.9.2-bin-release.zip
cd rocketmq-4.9.2

brocker.conf

brokerClusterName = DefaultCluster
brokerName = broker-a
brokerId = 0
namesrvAddr=172.16.0.120:9876
brockerIP1=172.16.0.120
deleteWhen = 04
fileReservedTime = 48
brokerRole = ASYNC_MASTER
flushDiskType = ASYNC_FLUSH

run

mkdir -p /root/store/commitlog
mkdir -p /root/store/consumequeue
cd /opt/rocketmq-4.9.2
nohub ./bin/mqnamesrv -n 172.16.0.120:9876 &
nohup sh bin/mqbroker -n 172.16.0.120:9876 -c conf/broker.conf autoCreateTopicEnable=true &

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注

Captcha Code