zoukankan      html  css  js  c++  java
  • Windows环境下安装RocketMQ

    一.预备环境
    1.系统
    Windows

    2. 环境
    JDK1.8、Maven、Git

    二. RocketMQ部署
    1.下载
    1.1地址:http://rocketmq.apache.org/release_notes/release-notes-4.3.0/
    1.2选择‘Binary’进行下载

    1.3解压已下载工程

    2. 配置
    2.1 系统环境变量配置
    变量名:ROCKETMQ_HOME
    变量值:MQ解压路径MQ文件夹名
    eg、ROCKETMQ_HOME=D:dev ocketmq-all-4.3.0-bin-release

    3. 启动
    3.1 启动NAMESERVER
    Cmd命令框执行进入至‘MQ文件夹in’下,然后执行‘start mqnamesrv.cmd’,启动NAMESERVER。成功后会弹出提示框,此框勿关闭。

    3.2 启动BROKER
    Cmd命令框执行进入至‘MQ文件夹in’下,然后执行‘start mqbroker.cmd -n 127.0.0.1:9876 autoCreateTopicEnable=true’,启动BROKER。成功后会弹出提示框,此框勿关闭。

    三. RocketMQ插件部署
    1. 下载
    地址:https://github.com/apache/rocketmq-externals.git

    如果下载失败,把https://github.com/apache/rocketmq-externals.git 的https换成git就ok

    下载完成之后,进入‘rocketmq-externals ocketmq-consolesrcmain esources’文件夹,打开‘application.properties’进行配置。

    复制代码
    server.contextPath=
    server.port=8088
    #spring.application.index=true
    spring.application.name=rocketmq-console
    spring.http.encoding.charset=UTF-8
    spring.http.encoding.enabled=true
    spring.http.encoding.force=true
    logging.config=classpath:logback.xml
    #if this value is empty,use env value rocketmq.config.namesrvAddr  NAMESRV_ADDR | now, you can set it in ops page.default localhost:9876
    rocketmq.config.namesrvAddr=127.0.0.1:9876
    #if you use rocketmq version < 3.5.8, rocketmq.config.isVIPChannel should be false.default true
    rocketmq.config.isVIPChannel=
    #rocketmq-console's data path:dashboard/monitor
    rocketmq.config.dataPath=/tmp/rocketmq-console/data
    #set it false if you don't want use dashboard.default true
    rocketmq.config.enableDashBoardCollect=true
    复制代码

    2. 编译启动
    用CMD进入‘ ocketmq-externals ocketmq-console’文件夹,执行‘mvn clean package -Dmaven.test.skip=true’,编译生成。

    编译成功之后,Cmd进入‘target’文件夹,执行‘java -jar rocketmq-console-ng-1.0.0.jar’,启动‘rocketmq-console-ng-1.0.0.jar’。

    3.测试
    浏览器中输入‘127.0.0.1:配置端口’,成功后即可查看。
    eg:http://127.0.0.1:8088

     
  • 相关阅读:
    游标cursor
    SQL: EXISTS
    LeetCode Reverse Integer
    LeetCode Same Tree
    LeetCode Maximum Depth of Binary Tree
    LeetCode 3Sum Closest
    LeetCode Linked List Cycle
    LeetCode Best Time to Buy and Sell Stock II
    LeetCode Balanced Binary Tree
    LeetCode Validate Binary Search Tree
  • 原文地址:https://www.cnblogs.com/fengquan-blog/p/14971926.html
Copyright © 2011-2022 走看看