目录
2m2s-async-version:两主两从启动脚本【两主两从异步复制异步刷新、主从分离,nohup方式启动】
RocketMQ消息队列篇
0、RocketMQ下载&安装【or 私信Call me】
https://download.csdn.net/download/qq_36326332/12822426?spm=1001.2014.3001.5503
1、RocketMQ解压、放置说明
[root@localhost /]# tar -zxvf rocketmq-install.tar.gz
[root@localhost /]# ll
drwxr-xr-x. 4 root root 65 12月 5 00:03 groupdata
-rw-r--r--. 1 root root 54 12月 5 00:03 groupdata放置说明.txt
[root@localhost /]# ll groupdata/
total 12
lrwxrwxrwx 1 tiaoban tiaoban 18 Dec 4 23:53 jdk -> tools/jdk1.8.0_172 #jdk软连接
-rw-r--r-- 1 tiaoban tiaoban 112 Dec 5 00:03 jdk-set.txt #JDK配置说明
drwxr-xr-x 10 tiaoban tiaoban 4096 Dec 10 11:54 rocketmq #rocketmq
drwxr-xr-x 3 tiaoban tiaoban 4096 Dec 5 00:02 tools #jdk放置目录
2、RocketMQ目录结构
#目录结构
[root@localhost groupdata]# tree rocketmq/
rocketmq/
├── 1single-version
│ ├── start-all.sh
│ ├── start-broker.sh
│ ├── start-namesvr.sh
│ └── stop-all.sh
├── 2m2s-async-version
│ ├── broker-a
│ │ ├── broker-a.sh
│ │ ├── broker-a-s.sh
│ │ └── namesvr-a.sh
│ └── broker-b
│ ├── broker-b.sh
│ ├── broker-b-s.sh
│ └── namesvr-b.sh
├── benchmark
│ ├── ...
├── bin
│ ├── ...
├── conf
│ ├── 2m-2s-async
│ │ ├── ...
│ ├── 2m-2s-sync
│ │ ├── ...
│ ├── 2m-noslave
│ │ ├── ...
│ ├── broker-a.properties
│ ├── broker-a-s.properties
│ ├── broker-b.properties
│ ├── broker-b-s.properties
│ ├── broker.conf
│ ├── logback_broker.xml
│ ├── logback_filtersrv.xml
│ ├── logback_namesrv.xml
│ └── logback_tools.xml
├── dashboard
│ ├── config
│ │ └── application.properties
│ ├── rocketmq-console-ng-2.0.0.jar
│ └── rocketmq-console-start.sh
├── lib
│ ├── ...
├── LICENSE
├── NOTICE
├── rocketmq启动说明.txt
└── services
├── broker-a-service
│ ├── broker.service
│ ├── broker-s.service
│ └── namesrv.service
├── broker-b-service
│ ├── broker.service
│ ├── broker-s.service
│ └── namesrv.service
└── service启动说明.txt
3、目录介绍:
1single-version:单节点部署启动脚本
[root@localhost rocketmq]# tree 1single-version/ #该目录下无需修改
1single-version/
├── start-all.sh
├── start-broker.sh
├── start-namesvr.sh
└── stop-all.sh
2m2s-async-version:两主两从启动脚本【两主两从异步复制异步刷新、主从分离,nohup方式启动】
[root@localhost rocketmq]# tree 2m2s-async-version/ #该目录下无需修改
2m2s-async-version/
├── broker-a #部署在broker-a节点的启动脚本
│ ├── broker-a.sh
│ ├── broker-a-s.sh
│ └── namesvr-a.sh
└── broker-b #部署在broker-b节点的启动脚本
├── broker-b.sh
├── broker-b-s.sh
└── namesvr-b.sh
注意:启动顺序:先两namesrv、再启动两master-broker、最后启动slave-broker。
services:两主两从service服务方式启动
[root@localhost rocketmq]# tree services/ #该目录下无需修改,只需要按照“service启动说明.txt”操作即可
services/
├── broker-a-service
│ ├── broker.service
│ ├── broker-s.service
│ └── namesrv.service
├── broker-b-service
│ ├── broker.service
│ ├── broker-s.service
│ └── namesrv.service
└── service启动说明.txt
dashboard:RocketMQ的控制台
[root@localhost rocketmq]# tree dashboard/ #只修改配置文件application.properties的IP地址即可
dashboard/
├── config
│ └── application.properties
├── rocketmq-console-ng-2.0.0.jar
└── rocketmq-console-start.sh
4、安装部署:
安装部署修改点说明:rocketmq启动说明.txt