1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
docker run -itd --name rocketmq_namesrv --restart=always -p 9876:9876 -v /data/docker_data/rocketmq/namesrv:/home/rocketmq rocketmqinc/rocketmq:latest sh mqnamesrv autoCreateTopicEnable=true
docker run -d -p 10911:10911 -p 10909:10909 --restart=always -v /data/rocketmq/broker:/home/rocketmq:rw -v /deploy/etc/rocketmq-broker.conf:/opt/rocketmq-4.4.0/conf/broker.conf \
-v /etc/localtime:/etc/localtime:ro \
--name rocketmq_broker -e "NAMESRV_ADDR=192.168.1.100:9876" \
-e "MAX_POSSIBLE_HEAP=200000000" \
rocketmqinc/rocketmq:4.4.0 sh mqbroker autoCreateTopicEnable=true -c /opt/rocketmq-4.4.0/conf/broker.conf
|