rocketmq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vongosl...@apache.org
Subject [rocketmq-docker] 44/50: Docs(README):fix the trivial problems
Date Tue, 03 Dec 2019 13:51:07 GMT
This is an automated email from the ASF dual-hosted git repository.

vongosling pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/rocketmq-docker.git

commit e8dcd47fe4fcc443e77977053f76504dc6009580
Author: vongosling <vongosling@apache.org>
AuthorDate: Fri Nov 8 16:44:42 2019 +0800

    Docs(README):fix the trivial problems
---
 README.md | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/README.md b/README.md
index a02ba20..9300992 100644
--- a/README.md
+++ b/README.md
@@ -181,17 +181,17 @@ And put the customized `broker.conf` file at a specific path, like "`pwd`/data/b
 Then we can modify the `play-docker.sh` and volume this file to the broker container when
it starts. For example: 
 
 ```
-docker run -d -p 10911:10911 -p 10909:10909 -v `pwd`/data/broker/logs:/root/logs -v `pwd`/data/broker/store:/root/store
-v `pwd`/data/broker/conf/broker.conf:/opt/rocketmq-4.4.0/conf/broker.conf --name rmqbroker
--link rmqnamesrv:namesrv -e "NAMESRV_ADDR=namesrv:9876" apacherocketmq/rocketmq:4.4
-.0 sh mqbroker -c /opt/rocketmq-4.4.0/conf/broker.conf
+docker run -d -p 10911:10911 -p 10909:10909 -v `pwd`/data/broker/logs:/root/logs -v `pwd`/data/broker/store:/root/store
-v `pwd`/data/broker/conf/broker.conf:/home/rocketmq/rocketmq-4.5.0/conf/broker.conf --name
rmqbroker --link rmqnamesrv:namesrv -e "NAMESRV_ADDR=namesrv:9876" apacherocketmq/rocketmq:4.5
+.0 sh mqbroker -c /opt/rocketmq-4.5.0/conf/broker.conf
 
 ```
 
 Finally we can find the customized `broker.conf` has been used in the broker container. For
example:
 
 ```
-huandeMacBook-Pro:4.4.0 huan$ docker ps |grep mqbroker
-a32c67aed6dd        apacherocketmq/rocketmq:4.4.0   "sh mqbroker"       20 minutes ago  
   Up 20 minutes       0.0.0.0:10909->10909/tcp, 9876/tcp, 0.0.0.0:10911->10911/tcp
  rmqbroker
-huandeMacBook-Pro:4.4.0 huan$ docker exec -it a32c67aed6dd cat /opt/rocketmq-4.4.0/conf/broker.conf
+MacBook-Pro:4.5.0 huan$ docker ps |grep mqbroker
+a32c67aed6dd        apacherocketmq/rocketmq:4.5.0   "sh mqbroker"       20 minutes ago  
   Up 20 minutes       0.0.0.0:10909->10909/tcp, 9876/tcp, 0.0.0.0:10911->10911/tcp
  rmqbroker
+MacBook-Pro:4.5.0 $ docker exec -it a32c67aed6dd cat /home/rocketmq/rocketmq-4.5.0/conf/broker.conf
 brokerClusterName = DefaultCluster
 brokerName = broker-a
 brokerId = 0
@@ -209,7 +209,7 @@ In the case of docker-compose, change the docker-compose.yml like following:
 version: '2'
 services:
   namesrv:
-    image: apacherocketmq/rocketmq:4.4.0
+    image: apacherocketmq/rocketmq:4.5.0
     container_name: rmqnamesrv
     ports:
       - 9876:9876
@@ -217,7 +217,7 @@ services:
       - ./data/namesrv/logs:/home/rocketmq/logs
     command: sh mqnamesrv
   broker:
-    image: apacherocketmq/rocketmq:4.4.0
+    image: apacherocketmq/rocketmq:4.5.0
     container_name: rmqbroker
     ports:
       - 10909:10909
@@ -226,7 +226,7 @@ services:
     volumes:
       - ./data/broker/logs:/home/rocketmq/logs
       - ./data/broker/store:/home/rocketmq/store
-      - ./data/broker/conf/broker.conf:/opt/rocketmq-4.4.0/conf/broker.conf
+      - ./data/broker/conf/broker.conf:/opt/rocketmq-4.5.0/conf/broker.conf
     #command: sh mqbroker -n namesrv:9876
     command: sh mqbroker -n namesrv:9876 -c ../conf/broker.conf
     depends_on:


Mime
View raw message