rocketMQ-环境搭建

rocketMQ环境搭建

git clone https://github.com/foxiswho/docker-rocketmq.git

切换分支git checkout v4.4.0

该项目目录结构为

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
docker-rocketmq/
├── base
│   ├── Dockerfile
│   ├── readme.md
│   └── scripts
│   ├── runbroker-customize.sh
│   ├── runserver-customize.sh
│   └── to_bytes.gawk
├── broker
│   ├── Dockerfile
│   └── readme.md
├── README.md
├── rmq #进入此目录
│   ├── docker-compose.yml
│   └── rmq
│   ├── brokerconf
│   │   └── broker.conf
│   ├── logs
│   ├── readme.md
│   └── store
└── server
├── Dockerfile
└── readme.md

进入rmq目录下,执行docker-compose up 即可。

启动IP,如果 docker 报 com.alibaba.rocketmq.remoting.exception.RemotingConnectException: connect to <192.168.0.120:10909> failed修改
broker.conf 文件里brokerIP1设置为宿主ip即可