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

部署rocketmq-console控制台

部署rocketmq-console控制台(前提是服务器先安装好jdk,如无请参考后面安装jdk部分)

新建目录mkdir /opt/rocketmq-console,并上传安装包rocketmq-console-ng-2.0.0.jar到该目录。

  1. rocketmq-console,创建目录,并上传rocketmq-console
    # mkdir /opt/rocketmq-console
    # mkdir /data/rocketmq-console/
    # cd /opt/rocketmq-console
    # cp /soft/rocketmq/rocketmq-console-ng-2.0.0.jar ./
    # vim /etc/systemd/system/rocketmq-console.service
    [Unit]
    Description=rocketmq-console
    After=syslog.target network.target remote-fs.target nss-lookup.target
    [Service]
    Type=simple
    ExecStart=/opt/jdk1.8.0_251/bin/java -jar /opt/rocketmq-console/rocketmq-console-ng-2.0.0.jar --server.port=38060 --rocketmq.config.namesrvAddr=192.168.0.190:9876;192.168.0.228:9876;192.168.0.168:9876 --rocketmq.config.isVIPChannel=false
    Restart=always
    PrivateTmp=true
    [Install]
    WantedBy=multi-user.target
  2. 重新加载systemctl配置
    # systemctl daemon-reload
  3. 设置跟随linux启动,并启动rocketmq-console
    # systemctl start rocketmq-console && systemctl enable rocketmq-console
  4. 或用以下方式启动服务
    #nohup java -jar ./rocketmq-console-ng-2.0.0.jar --server.port="38060" --rocketmq.config.namesrvAddr="192.168.0.190:9876;192.168.0.228:9876;192.168.0.168:9876" >/data/rocketmq-console/mqconsole.log 2>&1 &
  5. 访问mq控制台 :

    http://124.71.107.141:38060/#/cluster

    图1 访问mq控制台1
    图2 访问mq控制台2

相关文档