• RocketMQ - Java 20220917


    前言

    提示:这里可以添加本文要记录的大概内容

    一、概述

    提示:这里可以添加本文要记录的大概内容

    1.1 待定

    1

    二、安装教程

    提示:这里可以添加本文要记录的大概内容

    2.1 Linux部署

    前提条件是需要Java环境,关于JDK安装不做说明。

    [root@myDemo ~]# java -version
    openjdk version "1.8.0_342"
    OpenJDK Runtime Environment (build 1.8.0_342-b07)
    OpenJDK 64-Bit Server VM (build 25.342-b07, mixed mode)
    [root@myDemo ~]# 
    
    • 1
    • 2
    • 3
    • 4
    • 5

    从官网拉取压缩包,然后解压

    ## 安装解压软件
    yum -y install unzip
    
    ## 下载包 解压
    wget https://archive.apache.org/dist/rocketmq/4.9.3/rocketmq-all-4.9.3-bin-release.zip
    
    unzip rocketmq-all-4.9.3-bin-release.zip
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7

    启动NameServerBroker

    setsid sh mqnamesrv
    setsid sh mqbroker -n 0.0.0.0:9876
    
    • 1
    • 2

    [外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-R0rwJNJV-1663424387253)(https://csdn-pic-1301850093.cos.ap-guangzhou.myqcloud.com/csdn-pic/rocketmq-Linux-第一次部署-1.png)]

    2.2 Docker部署

    1

    2.3 控制台部署

    从这里把代码拉下来,然后修改application.yml配置文件

    #
    # Licensed to the Apache Software Foundation (ASF) under one or more
    # contributor license agreements.  See the NOTICE file distributed with
    # this work for additional information regarding copyright ownership.
    # The ASF licenses this file to You under the Apache License, Version 2.0
    # (the "License"); you may not use this file except in compliance with
    # the License.  You may obtain a copy of the License at
    #
    #     http://www.apache.org/licenses/LICENSE-2.0
    #
    # Unless required by applicable law or agreed to in writing, software
    # distributed under the License is distributed on an "AS IS" BASIS,
    # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    # See the License for the specific language governing permissions and
    # limitations under the License.
    #
    
    server:
      port: 18086
      servlet:
        encoding:
          charset: UTF-8
          enabled: true
          force: true
    ## SSL setting
    #  ssl:
    #    key-store: classpath:rmqcngkeystore.jks
    #    key-store-password: rocketmq
    #    key-store-type: PKCS12
    #    key-alias: rmqcngkey
    
    spring:
      application:
        name: rocketmq-dashboard
    
    logging:
      config: classpath:logback.xml
    
    rocketmq:
      config:
        # if this value is empty,use env value rocketmq.config.namesrvAddr  NAMESRV_ADDR | now, default localhost:9876
        # configure multiple namesrv addresses to manage multiple different clusters
        namesrvAddrs:
          - 192.168.247.184:9876
        #      - 127.0.0.2:9876
        # if you use rocketmq version < 3.5.8, rocketmq.config.isVIPChannel should be false.default true
        isVIPChannel:
        # timeout for mqadminExt, default 5000ms
        timeoutMillis:
        # rocketmq-console's data path:dashboard/monitor    /tmp/rocketmq-console/data
        dataPath: tmp/rocketmq-console/data
        # set it false if you don't want use dashboard.default true
        enableDashBoardCollect: true
        # set the message track trace topic if you don't want use the default one
        msgTrackTopicName:
        ticketKey: ticket
        # must create userInfo file: ${rocketmq.config.dataPath}/users.properties if the login is required
        loginRequired: false
        useTLS: false
        # set the accessKey and secretKey if you used acl
        accessKey: # if version > 4.4.0
        secretKey: # if version > 4.4.0
    
    threadpool:
      config:
        coreSize: 10
        maxSize: 10
        keepAliveTime: 3000
        queueSize: 
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 9
    • 10
    • 11
    • 12
    • 13
    • 14
    • 15
    • 16
    • 17
    • 18
    • 19
    • 20
    • 21
    • 22
    • 23
    • 24
    • 25
    • 26
    • 27
    • 28
    • 29
    • 30
    • 31
    • 32
    • 33
    • 34
    • 35
    • 36
    • 37
    • 38
    • 39
    • 40
    • 41
    • 42
    • 43
    • 44
    • 45
    • 46
    • 47
    • 48
    • 49
    • 50
    • 51
    • 52
    • 53
    • 54
    • 55
    • 56
    • 57
    • 58
    • 59
    • 60
    • 61
    • 62
    • 63
    • 64
    • 65
    • 66
    • 67
    • 68
  • 相关阅读:
    java扩展jmeter依赖
    istio: 如何对istio数据平面进行benchmark
    C#-委托和lambda
    AWS上迁移WordPress遭遇若干问题记处理办法
    深度学习编译器
    python学习——python的内建函数总结
    在vue中使用echarts实现飞机航线 水滴图 词云图
    网络编程详解-UDP-TCP
    speedoffice(Word)怎么修改字体颜色呢
    Pascal面试考试题库和答案(命令式和过程式编程语言学习资料)
  • 原文地址:https://blog.csdn.net/weixin_48518621/article/details/126907217