• Docker快速安装RocketMQ


    搜索镜像

    docker search rocketmq
    
    NAME                                 DESCRIPTION                                     STARS     OFFICIAL   AUTOMATED
    foxiswho/rocketmq                    rocketmq                                        66                   
    rocketmqinc/rocketmq                 Image repository for Apache RocketMQ            53                   
    styletang/rocketmq-console-ng        rocketmq-console-ng                             37                   
    apacherocketmq/rocketmq              Docker Image for Apache RocketMQ                20                   
    rocketmqinc/rocketmq-broker          Customized RocketMQ Broker Image for RocketM…   12                   
    rocketmqinc/rocketmq-namesrv         Customized RocketMQ Name Server Image for Ro…   9                    
    leixuewen/rocketmq                   基于 rocketmq 最新版制作,可快速部署单机和集群                    7                    
    apacherocketmq/rocketmq-console      This repo has moved to rocketmq-dashboard, w…   6                    
    king019/rocketmq                     rocketmq                                        4                    
    apacherocketmq/rocketmq-nameserver   Apache RocketMQ docker image for name server.   3                    
    apacherocketmq/rocketmq-broker       Apache RocketMQ docker image for broker.        3                    
    dyrnq/rocketmq                       This is a rocketmq docker image based AdoptO…   3                    
    pangliang/rocketmq-console-ng                                                        2                    
    apacherocketmq/rocketmq-dashboard    Docker Image for Apache RocketMQ Dashboard      2                    
    apacherocketmq/rocketmq-operator     RocketMQ Operator is to manage RocketMQ serv…   1                    
    2019liurui/rocketmq-broker           RocketMQ broker image for RocketMQ-Operator     1                    
    huanwei/rocketmq                                                                     1                    
    toyangdon/rocketmq-broker                                                            1                    
    pureinsights/rocketmq-broker                                                         0                    
    chaiyd/rocketmq                      Apache RocketMQ™ is a unified messaging engi…   0                    
    rocketmqop/rocketmq-namesrv          RocketMQ Name Server Image for RocketMQ Oper…   0                    
    pengzu/rocketmq-console-ng           web console for rocketmq ,this code is from …   0                    
    2019liurui/rocketmq-operator         Kubernetes Operator for RocketMQ !              0                    
    rocketmqinc/rocketmq-operator        The Kubernetes operator for RocketMQ            0                    
    comqx/rocketmq-broker                                                                0 
    

    选定版本

    curl https://registry.hub.docker.com/v1/repositories/foxiswho/rocketmq/tags | tr -d '[\[\]" ]' | tr '}' '\n' | awk -F: -v image='foxiswho/rocketmq' '{if(NR!=NF && $3 != ""){printf("%s:%s\n",image,$3)}}'
    
     % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                     Dload  Upload   Total   Spent    Left  Speed
      0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
    100   966    0   966    0     0    320      0 --:--:--  0:00:03 --:--:--   320
    foxiswho/rocketmq:4.7.0
    foxiswho/rocketmq:4.8.0
    foxiswho/rocketmq:base-4.3.0
    foxiswho/rocketmq:base-4.3.2
    foxiswho/rocketmq:base-4.4.0
    foxiswho/rocketmq:base-4.5.0
    foxiswho/rocketmq:base-4.5.1
    foxiswho/rocketmq:base-4.5.2
    foxiswho/rocketmq:base-4.6.1
    foxiswho/rocketmq:broker
    foxiswho/rocketmq:broker-4.3.2
    foxiswho/rocketmq:broker-4.4.0
    foxiswho/rocketmq:broker-4.5.0
    foxiswho/rocketmq:broker-4.5.1
    foxiswho/rocketmq:broker-4.5.2
    foxiswho/rocketmq:broker-4.6.1
    foxiswho/rocketmq:broker-4.7.0
    foxiswho/rocketmq:server
    foxiswho/rocketmq:server-4.3.2
    foxiswho/rocketmq:server-4.4.0
    foxiswho/rocketmq:server-4.5.0
    foxiswho/rocketmq:server-4.5.1
    foxiswho/rocketmq:server-4.5.2
    foxiswho/rocketmq:server-4.6.1
    foxiswho/rocketmq:server-4.7.0
    

    启动Server

    docker run -d -p 9876:9876 --name rmqserver foxiswho/rocketmq:server-4.7.0
    

    启动Broker

    docker run -d -p 10911:10911 -p 10909:10909 --name rmqbroker --link rmqserver:namesrv -e "NAMESRV_ADDR=namesrv:9876" -e "JAVA_OPTS=-Duser.home=/opt" -e "JAVA_OPT_EXT=-server -Xms128m -Xmx128m" foxiswho/rocketmq:broker-4.7.0
    

    -v挂载配置文件
    Broker挂载到容器中配置文件路径: /etc/rocketmq/broker.conf

    docker run -d -p 10911:10911 -p 10909:10909 --name rmqbroker --link rmqserver:namesrv -e "NAMESRV_ADDR=namesrv:9876" -e "JAVA_OPTS=-Duser.home=/opt" -e "JAVA_OPT_EXT=-server -Xms128m -Xmx128m" -v /conf/broker.conf:/etc/rocketmq/broker.conf foxiswho/rocketmq:broker-4.7.0
    

    挂载的配置文件内容

    brokerClusterName = DefaultCluster
    brokerName = broker-a
    brokerId = 0
    deleteWhen = 04
    fileReservedTime = 48
    brokerRole = ASYNC_MASTER
    flushDiskType = ASYNC_FLUSH
    ## 修改为你的宿主机IP
    brokerIP1 = 192.168.1.3
    

    安装 RocketMQ console

    docker run -d --name rmqconsole -p 8180:8080 --link rmqserver:namesrv -e "JAVA_OPTS=-Drocketmq.namesrv.addr=namesrv:9876 -Dcom.rocketmq.sendMessageWithVIPChannel=false" -t styletang/rocketmq-console-ng
    

  • 相关阅读:
    邮件发送的存储过程写法
    FormsAuthentication.GetRedirectUrl 方法
    视图性能优化——索引视图
    删除多字段的重复行保留最大最小行
    c#知识点
    sql存储过程exec执行字符串select 的区别
    UVALive5198 UVA512 Spreadsheet Tracking
    UVA129 HDU1627 Krypton Factor
    UVA129 HDU1627 Krypton Factor
    UVA10603 Fill
  • 原文地址:https://www.cnblogs.com/tsangyi/p/15900431.html
Copyright © 2020-2023  润新知