最近因为工作需求,领导让我安装一下RocketMQ
这里简单记录一下
这里我的操作系统是centos 6.5 64位
我们看一下官网的RocketMQ安装要求
Prerequisite The following softwares are assumed installed: (1)64bit OS, Linux/Unix/Mac is recommended; (2)64bit JDK 1.7+; (3)Maven 3.2.x (4)Git
所以这里我按照官网的要求
[root@10-19-73-64 ~]# cat /etc/issue CentOS release 6.5 (Final) Kernel on an m [root@10-19-73-64 ~]# java -version java version "1.8.0_65" Java(TM) SE Runtime Environment (build 1.8.0_65-b17) Java HotSpot(TM) 64-Bit Server VM (build 25.65-b01, mixed mode) [root@10-19-73-64 ~]# mvn -V Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5; 2015-11-11T00:41:47+08:00) Maven home: /data/usr/local/apache-maven-3.3.9 [root@10-19-73-64 ~]# git --version git version 1.7.1
参照下来,满足要求了。下面一步是把RocketMQ下载下来,Quick Start中使用的方式是直接clone代码,然后自己build。直接clone的代码是最新的,我们保守点,还是下载最新的release版本,目前最新版是rocketmq-4.0.0-incubating。下载下来之后执行如下步骤,当然下载目录和安装目录按自己喜好来。
https://github.com/apache/incubator-rocketmq/archive/rocketmq-4.0.0-incubating.tar.gz
> mkdir rocketmq && tar -zxvf incubator-rocketmq-rocketmq-4.0.0-incubating.tar.gz -C ./rocketmq --strip-components 1
> mvn clean package install -Prelease-all assembly:assembly -U
或者这里我们也可以使用git clone 下载
参考链接:
https://rocketmq.incubator.apache.org/docs/quick-start/
http://bboyjing.github.io/2017/04/06/RocketMQ%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0%E4%B8%80%E3%80%90Hello-MQ%E3%80%91/