1.基本概念
https://www.cnblogs.com/boboooo/p/13038950.html
2.环境部署-集群
https://www.cnblogs.com/boboooo/p/13050116.html
单机部署
rocketmq部署
1.安装java环境 1.8
2.安装nameserver
unzip rocketmq-all-4.7.0-bin-release.zip
mv rocketmq-all-4.7.0-bin-release rocketmq
启动nameserver
cd rocketmq
./bin/mqnamesrv
vim /etc/profile
export PATH=$PATH:/data/rocketmq/bin
export NAMESRV_ADDR=172.28.8.22:9876
启动broker
vim broker.conf
namesrvAddr = 172.28.8.22:9876
brokerClusterName = DefaultCluster
brokerName = broker-a
listenPort=10911
brokerId = 0
deleteWhen = 04
fileReservedTime = 48
brokerRole = ASYNC_MASTER
flushDiskType = ASYNC_FLUSH
storePathRootDir= /data/env/rocketmq/store/store
storePathCommitLog= /data/env/rocketmq/store/commitlog
storePathConsumeQueue= /data/env/rocketmq/store/consumequeue
storePathIndex= /data/env/rocketmq/store/index
storeCheckpoint=/data/env/rocketmq/store/checkpoint
abortFile=/data/env/rocketmq/store/abort
限制jvm
vim bin/runbroker.sh
JAVA_OPT="${JAVA_OPT} -server -Xms4g -Xmx4g -Xmn1g"
nohup mqbroker -c /data/rocketmq/conf/broker.conf >/data/rocketmq/logs/broker.log 2>&1 &
nameserver端口9876
broker端口10911