原创

RocketMQ-4.9.2单机部署

前言

软件环境

JAVA环境:JDK1.8

系统环境:CentOS 7

下载压缩包

cd /
mkdir data
cd data
wget
https://dlcdn.apache.org/rocketmq/4.9.2/rocketmq-all-4.9.2-bin-release.zip

解压

unzip rocketmq-all-4.9.2-bin-release.zip

运行

启动NameServer

nohup sh bin/mqnamesrv &
tail -f ~/logs/rocketmqlogs/namesrv.log

The Name Server boot success...

启动Broker

nohup sh bin/mqbroker -n localhost:9876 &
tail -f ~/logs/rocketmqlogs/broker.log 
The broker[%s, 172.30.30.233:10911] boot success...

注意:启动过程中如果出现内存不足等情况,可以修改jvm启动参数进行调整,具体位置在

NameServer:/data/rocketmq-4.9.2/bin/runserver.sh

Broker:/data/rocketmq-4.9.2/bin/runbroker.sh

正文到此结束