docker rocketmq4.7.0
生活随笔
收集整理的這篇文章主要介紹了
docker rocketmq4.7.0
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
創建數據掛載目錄
mkdir -p /app/rocketmq/rmqserver01/logs mkdir -p /app/rocketmq/rmqserver01/store mkdir -p /app/rocketmq/rmqbroker01/logs mkdir -p /app/rocketmq/rmqbroker01/store mkdir -p /app/rocketmq/rmqbroker01/conf編輯配置文件
vim /app/rocketmq/rmqbroker01/conf/broker.conf namesrvAddr=192.168.92.129:9876 brokerClusterName = DefaultCluster brokerName = broker-a brokerId = 0 deleteWhen = 04 fileReservedTime = 48 brokerRole = ASYNC_MASTER flushDiskType = ASYNC_FLUSH brokerIP1 = 192.168.92.129 listenPort=10911創建nameserver容器
docker run \ -d \ -p 9876:9876 \ --name rmqserver01 \ -e "JAVA_OPT_EXT=-server -Xms128m -Xmx128m -Xmn128m" -e "JAVA_OPTS=-Duser.home=/opt" \ -v /app/rocketmq/rmqserver01/logs:/opt/logs \ -v /app/rocketmq/rmqserver01/store:/opt/store \ --restart always \ foxiswho/rocketmq:server-4.7.0創建rocketmq:broker容器
docker run -it -d --net host --name rmqbroker01 -e "JAVA_OPT_EXT=-server -Xms128m -Xmx128m -Xmn128m" -e "JAVA_OPTS=-Duser.home=/opt" -v /app/rocketmq/rmqbroker01/conf/broker.conf:/etc/rocketmq/broker.conf -v /app/rocketmqq/rmqbroker01/logs:/opt/logs -v /app/rocketmq/rmqbroker01/store:/opt/store --privileged=true --restart always foxiswho/rocketmq:broker-4.7.0啟動rocketmq-console容器
docker run \ -d \ -p 8082:8080 \ -e "JAVA_OPTS=-Drocketmq.namesrv.addr=192.168.92.129:9876;192.168.92.129:9877 -Dcom.rocketmq.sendMessageWithVIPChannel=false" \ --restart always \ styletang/rocketmq-console-ng:latesthttp://192.168.92.129:8082/#/
總結
以上是生活随笔為你收集整理的docker rocketmq4.7.0的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: uniapp 开发基础环境搭建和配置
- 下一篇: CSDN的常用文本设置(字体大小红色)