liruhui opened a new issue, #4117:
URL: https://github.com/apache/rocketmq/issues/4117

   # three question
   ## 1: fist question
   ```java
    Use docker run a namesrv container  There are log files when data volumes 
are not used, but There are no log files when using data 
    volumes
   
   // example1    log files 
    docker run -d --name huigenamesrv -p 9876:9876 apache/rocketmq:4.9.2 sh 
mqnamesrv
   
   //example2   no log files 
   docker run -d --name huigenamesrv -p 9876:9876 -v 
namesrv:/home/rocketmq/logs  apache/rocketmq:4.9.2 sh mqnamesrv
   
    why?????
   ```
   
   ## 2: second question 
   ```java
   Use docker run a broker container  There are log files when data volumes are 
not used, but There are no log files when using data 
    volumes
   
   // example1    log files 
   docker run -d  --name huigebroker -p 10911:10911 -p 10909:10909  -p 
10912:10912  -e "NAMESRV_ADDR=192.168.154.128:9876" apache/rocketmq:4.9.2 sh 
mqbroker 
   
   //example2  no log files 
   docker run -d  --name huigebroker -p 10911:10911 -p 10909:10909 -p 
10912:10912 -e "NAMESRV_ADDR=192.168.154.128:9876" -v 
brokerlog:/home/rocketmq/logs apache/rocketmq:4.9.2 sh mqbroker -c 
../conf/broker.conf
   
   why?????
   ```
   
   ## 3: three question 
   ```java
    Use docker run a broker container  When the store is not mounted, it starts 
normally; when the store is mounted, an error will be reported, and there is no 
store data in the data volume.
   
   // example1:   no mount store  ==> success 
   docker run -d  --name huigebroker -p 10911:10911 -p 10909:10909 -p 
10912:10912 -e "NAMESRV_ADDR=192.168.154.128:9876" -v 
brokerlog:/home/rocketmq/logs -v 
brokerconfig:/home/rocketmq/rocketmq-4.9.2/conf apache/rocketmq:4.9.2 sh 
mqbroker -c ../conf/broker.conf
   
   // example2 : mount store => error   container  exit  
   docker run -d  --name huigebroker -p 10911:10911 -p 10909:10909 -p 
10912:10912 -e "NAMESRV_ADDR=192.168.154.128:9876" -v 
brokerlog:/home/rocketmq/logs -v brokerstore:/home/rocketmq/store -v 
brokerconfig:/home/rocketmq/rocketmq-4.9.2/conf apache/rocketmq:4.9.2 sh 
mqbroker -c ../conf/broker.conf
   
    why???  how to do ??
   ```
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to