当前位置: 首页>后端>正文

rocketmq集群搭建

1、架构图

rocketmq集群搭建,第1张
2主2从

2、服务器

rocketmq集群搭建,第2张
修改/etc/hosts

#nameserver
43.138.113.210 rocketmq-nameserver1

120.46.129.143 rocketmq-nameserver2

#broker

43.138.113.210 rocketmq-master1

43.138.113.210 rocketmg-slave2

120.46.129.143 rocketmq-master2

120.46.129.143 rocketmq-slave1

修改完后重启网络

systemctl restart network

创建存储路径
mkdir /App/rocketmq/rocketmq-master/rocketmq/store

mkdir/App/rocketmq/rocketmq-master/rocketmq/store/commitlog

mkdir /App/rocketmq/rocketmq-master/rocketmq/store/consumequeue

mkdir /App/rocketmq/rocketmq-master/rocketmq/store/index

mkdir?/App/rocketmq/rocketmq-master/rocketmq/store/checkpoint

mkdir?/App/rocketmq/rocketmq-master/rocketmq/store/abort

修改配置文件

启动nameserver

启动broker


https://www.xamrdz.com/backend/3cg1925347.html

相关文章: