修改conf/broker.conf

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

启动
bin/mqnamesrv &

bin/mqbroker -n 192.168.0.117:9876 autoCreateTopicEnable=true -c /usr/local/rocketmq/conf/broker.conf &

关闭
bin/mqshutdown broker

bin/mqshutdown namesrv

安装单机版RocketMQ_其他