1、修改conf/bocker.conf 增加以下配置 路径替换为自己需要的路径
#commitLog存储路径
storePathCommitLog=/file/local/rocketmq/store/commitlog
#消费队列存储路径
storePathConsumeQueue=/file/local/rocketmq/store/consumequeue
#消息索引存储路径
storePathIndex=/file/local/rocketmq/store/index
#checkpoint 文件存储路径
storeCheckpoint=/file/local/rocketmq/store/checkpoint
#abort 文件存储路径
abortFile=/file/local/rocketmq/store/abort
2、runbroker.sh 增加一行启动配置
0.99为占用盘符的最大容量比。
JAVA_OPT="${JAVA_OPT} -Drocketmq.broker.diskSpaceWarningLevelRatio=0.99"
3、重新启动 rocket mq