RocketMQ 搭建

RocketMQ 搭建




RocketMQ 搭建


RocketMQ  二进制包安装  单机部署

    # unzip rocketmq-all-4.7.1-bin-release.zip
    # mv rocketmq-all-4.7.1-bin-release /usr/local/rocketmq
    # mkdir -p /usr/local/rocketmq/store
    # mkdir -p /usr/local/rocketmq/store/commitlog
    # mkdir -p /usr/local/rocketmq/store/consumequeue
    # mkdir -p /usr/local/rocketmq/store/index
    # export ROCKETMQ_HOME=/usr/local/rocketmq
    # export NAMESRV_ADDR=192.168.10.13:9876
    # cd /usr/local/rocketmq/conf
    # vim default-broker.properties               \\ 创建配置文件
        namesrvAddr=192.168.10.13:9876;
        messageIndexSafe=true
        autoCreateTopicEnable=true
        waitTimeMillsInSendQueue=5000
        sendMessageThreadPoolNums=64
        useReentrantLockWhenPutMessage=true
        defaultReadQueueNums = 16
        defaultWriteQueueNums = 16
        brokerIP1=192.168.10.13
        brokerClusterName=clusterName
        brokerName=localhost.localdomain
        brokerId=0
        deleteWhen=04
        fileReservedTime=48
        brokerRole=ASYNC_MASTER
        flushDiskType=ASYNC_FLUSH
        listenPort=port
        storePathRootDir=/usr/local/rocketmq/store
        storePathCommitLog= /usr/local/rocketmq/store/commitlog
        storePathConsumeQueue=/usr/local/rocketmq/store/consumequeue
        storePathIndex=/usr/local/rocketmq/store/index
    # cd /usr/local/rocketmq/bin
    # vim runbroker.sh
        JAVA_OPT="${JAVA_OPT} -server -Xms1g -Xmx1g -Xmn512m -XX:PermSize=128m -XX:MaxPermSize=320m"
    # vim runserver.sh
        JAVA_OPT="${JAVA_OPT} -server -Xms1g -Xmx1g -Xmn512m -XX:PermSize=128m -XX:MaxPermSize=320m"
    # /usr/local/rocketmq/bin/mqnamesrv &          \\ 启动 9876被监听
    # /usr/local/rocketmq/bin/mqbroker &            \\ 启动 10911 10912被监听

    rocketmq-externals       RocketMQ监控平台部署
        # cd /usr/local
        # git clone https://github.com/apache/rocketmq-externals.git
        # cd /usr/local/rocketmq-externals/rocketmq-console/src/main/resources
        # vim application.properties
            server.port=8080
            rocketmq.config.namesrvAddr=192.168.10.13:9876
            rocketmq.config.dataPath=/usr/local/rocketmq-console/data
        # cd /usr/local/rocketmq-externals/rocketmq-console
        # java -jar /usr/local/rocketmq-externals/rocketmq-console/target/rocketmq-console-ng-2.0.0.jar &  \\ 8080被监听

        http://192.168.10.13:8080/                  \\ 浏览器访问

    注:
        下载地址http://rocketmq.apache.org/dowloading/releases/




Teo

12条评论

altyazili 发布于04:51 - 2021年2月11日

Thank you, Greig, for revealing some secrets of how to use LinkedIn functionality when one is seeking job. The information is very useful and I shall certainly use it. I am not complete novice at LinkedIn and found out a lot of things about how it works by myself, but your info made me to look critically at my previous work with LinkedIn. Michaeline Symon Ramos

online 发布于01:33 - 2021年2月11日

If the refs called for a review before any timeouts, how do we lose a timeout? Cybill Ronnie Lenna

online 发布于00:10 - 2021年2月11日

I think you have noted some very interesting details , thankyou for the post. Cristal Frederic Alley

yabanci 发布于22:40 - 2021年2月10日

Just checking in to show my agreement. Your piece is well structured Nice job! Claudette Alisander Senzer

yabanci 发布于21:26 - 2021年2月10日

It is appropriate time to make some plans for the future and it is time to be happy. I have read this post and if I could I want to suggest you few interesting things or suggestions. Maybe you can write next articles referring to this article. I wish to read more things about it! Bendite Wait Dusen

indirmeden 发布于19:33 - 2021年2月10日

Hi Dear, are you genuinely visiting this web site daily, if so after that you will absolutely obtain fastidious experience. Fran Halsey Barclay

720p 发布于16:02 - 2021年2月10日

Zelf vond ik hem niet zo eng, maar ik weet dat veel mensen van mijn generatie er een flinke tik van hebben gekregen. Myrtie Tobias Kirshbaum

diziler 发布于21:29 - 2021年2月9日

I think you have remarked some very interesting points, appreciate it for the post. Kassi Cam Gratt Manda Michel Undine

movies 发布于16:31 - 2021年2月1日

Have you ever thought about including a little bit more than just your articles? Wilhelmina Wallas Wadsworth

cinayet süsü izle 发布于23:04 - 2021年1月29日

Hi to all, how is the whole thing, I think every one is getting more from this site, and your views are nice for new viewers. Maud Godart Kahaleel

porno 发布于20:47 - 2021年1月23日

Hello! I just would like to give a huge thumbs up for the great info you have here on this post. I will be coming back to your blog for more soon. Maryellen Adolphus McIntyre

bluray 发布于06:06 - 2021年1月12日

That would be the end of this report. Here you will find some web pages that we feel youll appreciate, just click the links. Marabel Say Nassi

You must be logged in to post a comment