RocketMQ的前身是MetaQ,metaq基本上是参照apache kafka开发的,把scala转为采用java开发。

rocketmq现在已由阿里提交给apache社区管理。

RocketMQ的系统架构

Apache RocketMQ部署文档


安装环境

NameServer 

10.0.0.201 

10.0.0.202 

10.0.0.203


Broker Master Server

10.0.0.201


Broker Slave Server

10.0.0.202


部署NameServer

在201, 202, 203上面运行以下命令

nohup sh bin/mqnameserv &


在201上面部署Broker Master  Server

编辑配置文件conf/2m-2s-async/broker-a.properties

Apache RocketMQ部署文档

nohup sh mqbroker –n “10.0.0.201:9876;10.0.0.202:9876;10.0.0.203:9876” –c../conf/2m-2s-async/broker-a.properties &

Apache RocketMQ部署文档

Apache RocketMQ部署文档


在202上面部署Broker Slave Server

编辑配置文件conf/2m-2s-async/broker-a-s.properties

Apache RocketMQ部署文档

nohup sh mqbroker –n “10.0.0.201:9876;10.0.0.202:9876;10.0.0.203:9876” –c../conf/2m-2s-async/broker-a-s.properties &


停止服务

停止Broker Server

sh mqshutdown broker


停止Name Server

sh mqshutdown namesrv


其它管理指令

Apache RocketMQ部署文档


查看broker状态

Apache RocketMQ部署文档

相关文章:

  • 2021-10-17
  • 2021-12-18
  • 2021-05-22
  • 2021-10-05
  • 2021-05-19
  • 2022-01-06
  • 2021-06-11
  • 2021-10-19
猜你喜欢
  • 2022-01-22
  • 2022-02-09
  • 2021-07-08
  • 2022-12-23
  • 2022-12-23
  • 2021-12-02
  • 2021-04-04
相关资源
相似解决方案