QinJiapeng commented on issue #7508: URL: https://github.com/apache/rocketmq/issues/7508#issuecomment-1893142155
我也遇到此问题,目前已经解决了 分享我的配置 mkdir -p -m 777 /mydata/rocketmq/conf mkdir -p -m 777 /mydata/rocketmq/store vim /mydata/rocketmq/conf/broker.conf ```sh brokerClusterName = DefaultCluster brokerName = broker-a brokerId = 0 deleteWhen = 04 fileReservedTime = 48 brokerRole = ASYNC_MASTER flushDiskType = ASYNC_FLUSH # 当前 broker 监听的 IP brokerIP1 = 192.168.18.195 ``` docker-compose.yml ```yml version: '3' services: rmqnamesrv: image: apache/rocketmq:5.1.4 container_name: rmqnamesrv ports: - 9876:9876 volumes: - /mydata/rocketmq/conf/broker.conf:/home/rocketmq/rocketmq-5.1.4/conf/broker.conf environment: JAVA_OPT_EXT: "-Duser.home=/home/rocketmq -Xms512M -Xmx512M -Xmn128m" command: ["sh","mqnamesrv"] broker: image: apache/rocketmq:5.1.4 container_name: rmqbroker ports: - 8081:8081 - 10909:10909 - 10911:10911 volumes: - /mydata/rocketmq/store:/home/rocketmq/store - /mydata/rocketmq/conf/broker.conf:/home/rocketmq/rocketmq-5.1.4/conf/broker.conf links: - rmqnamesrv:namesrv depends_on: - 'rmqnamesrv' environment: NAMESRV_ADDR: namesrv:9876 JAVA_OPT_EXT: "-Duser.home=/home/rocketmq -Xms512M -Xmx512M -Xmn128m" command: ["sh","mqbroker","-c","../conf/broker.conf","autoCreateTopicEnable=true","--enable-proxy"] rmqdashboard: image: apacherocketmq/rocketmq-dashboard:latest container_name: rocketmq-dashboard ports: - 8082:8080 environment: JAVA_OPTS: "-Drocketmq.namesrv.addr=namesrv:9876" links: - rmqnamesrv:namesrv depends_on: - 'rmqnamesrv' ``` -- 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: commits-unsubscr...@rocketmq.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org