1、Linux安装需环境:
CentOS7.3
jdk1.8
maven 3.6.1
rocketmq 4.7.2
rocketmq下载地址:
2、安装rocketmq
将rocketmq-rocketmq-all-4.7.0.tar.gz上传至software目录下解压:
tar -xvf rocketmq-rocketmq-all-4.7.0.tar.gz
cd rocketmq-rocketmq-all-4.7.0/
mvn 编译
mvn -Prelease-all -DskipTests clean install -U
编译成功后执行以下命令:
cd distribution/target/rocketmq-4.7.1/rocketmq-4.7.1
3、启动rocketmq
> 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...
4、rocketmq离线安装
在联网情况下将mvn编译好,之后将编译好的rocketmq-rocketmq-all-4.7.0文件整体复制到离线环境下(离线环境需要安装jdk和maven)
正常启动rocketmq即可。
5、rocketmq可视化操作界面
下载: