更新时间:2024-04-23 GMT+08:00
分享

安装配置JDK、上传并解压

安装配置JDK

  1. 执行安装jdk命令
    yum install java-1.8.0-openjdk
  2. 配置环境变量
    # vim /etc/profile
    #JDK
    export JAVA_HOME=/usr/lib/jvm/java
    export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar:$JAVA_HOME/jre/lib/rt.jar
    export PATH=$PATH:$JAVA_HOME/bin
    图1 配置环境变量
    # source /etc/profile

上传并解压

  1. 上传安装包到服务器/soft/rocketmq
    # cd /soft/rocketmq
    # unzip rocketmq-all-4.4.0-bin-release.zip
    # mv rocketmq-all-4.4.0-bin-release /opt/rocketmq-4.4.0
  2. 创建目录
    # mkdir -p /data/rocketmq-4.4.0/data/store-master/{commitlog,consumequeue,index}
    # mkdir -p /data/rocketmq-4.4.0/data/store-slave/{commitlog,consumequeue,index}
    # mkdir -p /data/rocketmq-4.4.0/logs

相关文档