美文网首页
RocketMq-4.9.1安装

RocketMq-4.9.1安装

作者: a丶逍遥子 | 来源:发表于2021-08-26 16:08 被阅读0次

    JDK 环境配置

    export JAVA_HOME=/root/jdk1.8.0_301
    export JRE_HOME=${JAVA_HOME}/jre
    export CLASSPATH=.:${JAVA_HOME}/lib:${JRE_HOME}/lib:$CLASSPATH
    export JAVA_PATH=${JAVA_HOME}/bin:${JRE_HOME}/bin
    export PATH=$PATH:${JAVA_PATH}
    

    启动server

    启动命令:
        nohup sh bin/mqnamesrv &
    查看日志:
        tail -f ~/logs/rocketmqlogs/namesrv.log
    

    修改配置

    文件地址:conf/broker.conf

    brokerClusterName = DefaultCluster
    brokerName = broker-a
    brokerId = 0
    deleteWhen = 04
    fileReservedTime = 48
    brokerRole = ASYNC_MASTER
    flushDiskType = ASYNC_FLUSH
    # 若是云端,则为外网地址
    brokerIP1 = 192.168.88.50
    # 若是云端,则为外网地址
    namesrvAddr = 192.168.88.50:9876
    

    启动broker

    启动命令:
        nohup sh bin/mqbroker -n 192.168.88.50:9876 -c conf/broker.conf &
    查看日志:
        tail -f ~/logs/rocketmqlogs/broker.log 
    

    启动控制台

    下载地址
    git clone https://github.com/apache/rocketmq-dashboard.git
     启动命令
    nohup java -jar rocketmq-dashboard-2.0.0.jar > dashboard.log 2>&1  &
    

    相关文章

      网友评论

          本文标题:RocketMq-4.9.1安装

          本文链接:https://www.haomeiwen.com/subject/sejuiltx.html