Apache RocketMQ部署文档
RocketMQ的前身是MetaQ,metaq基本上是参照apache kafka开发的,把scala转为采用java开发。
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
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 &
在202上面部署Broker Slave Server
编辑配置文件conf/2m-2s-async/broker-a-s.properties
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
其它管理指令
查看broker状态