ROCKETMQ4.8单机安装-更改目录

增加以下配置到conf/broker.conf,更改数据目录
storePathRootDir = /data/rocketmqData/store/
storePathCommitLog = /data/rocketmqData/store/commitlog
storePathConsumeQueue = /data/rocketmqData/store/consumequeue
storePathIndex = /data/rocketmqData/store/index
storeCheckpoint = /data/rocketmqData/store/checkpoint
abortFile = /data/rocketmqData/store/abort

替换日志存储目录
sed -i ‘s#\${user.home}#/data/rocketmq#g’ conf/logback_broker.xml
sed -i ‘s#\${user.home}#/data/rocketmq#g’ conf/logback_tools.xml
sed -i ‘s#\${user.home}#/data/rocketmq#g’ conf/logback_namesrv.xml

后台启动
nohup sh bin/mqnamesrv &

后台启动
nohup sh bin/mqbroker -c ./conf/broker.conf -n 127.0.0.1:9876 &

发表评论

您的电子邮箱地址不会被公开。