centos7 源码安装 rocketmq

2021-01-19  本文已影响0人  爱烫头的程序员
  1. 下载源码包 https://rocketmq.apache.org/docs/quick-start/
wget https://mirrors.tuna.tsinghua.edu.cn/apache/rocketmq/4.8.0/rocketmq-all-4.8.0-source-release.zip
  1. 解压
unzip rocketmq-all-4.8.0-source-release.zip
cd rocketmq-all-4.8.0-source-release
  1. 安装maven依赖
mvn -Prelease-all -DskipTests clean install -U
image.png

启动测试官方都有。。。。
https://rocketmq.apache.org/docs/quick-start/

cd /root/rocketmq-all-4.8.0-source-release/distribution/target/rocketmq-4.8.0/rocketmq-4.8.0

启动

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

The Name Server boot success...

nohup sh bin/mqbroker -n localhost:9876 &
tail -f ~/logs/rocketmqlogs/broker.log 

The broker[%s, 172.30.30.233:10911] boot success...
关闭

sh bin/mqshutdown broker

The mqbroker(36695) is running...
Send shutdown request to mqbroker(36695) OK

sh bin/mqshutdown namesrv

The mqnamesrv(36664) is running...
Send shutdown request to mqnamesrv(36664) OK

内存不足

vim /root/rocketmq-all-4.8.0-source-release/distribution/bin/runserver.sh
vim /root/rocketmq-all-4.8.0-source-release/distribution/bin/runbroker.sh

重启broker,重新编译

cd /root/rocketmq-all-4.8.0-source-release/
mvn -Prelease-all -DskipTests clean install -U
上一篇下一篇

猜你喜欢

热点阅读