日期:2014-05-16 浏览次数:21473 次
RocketMQ是alibaba公司开源的一个纯java的开源消息中间件。
进入到RocketMQ下载包解压的路径下
D:\machine\RocketMQ-3.0.8\RocketMQ-3.0.8>
接下来安装
执行下边的命令或者执行install.bat(在这个bat文件中的命令如下)对maven熟悉的一眼就知道是执行clean package install assembly等操作。
mvn -Dmaven.test.skip=true clean packageinstall assembly:assembly –U
操作信息如下:
[INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [INFO] Reactor Build Order: [INFO] [INFO] rocketmq-all 3.0.8 [INFO] rocketmq-remoting 3.0.8 [INFO] rocketmq-common 3.0.8 [INFO] rocketmq-client 3.0.8 [INFO] rocketmq-store 3.0.8 [INFO] rocketmq-broker 3.0.8 [INFO] rocketmq-tools 3.0.8 [INFO] rocketmq-research 3.0.8 [INFO] rocketmq-namesrv 3.0.8 [INFO] rocketmq-example 3.0.8 [INFO] rocketmq-qatest 3.0.8 [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building rocketmq-all 3.0.8 3.0.8 [INFO]------------------------------------------------------------------------ [INFO]///省了…..编译打包过程 [INFO]------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] [INFO] rocketmq-all 3.0.8................................ SUCCESS [5.861s] [INFO] rocketmq-remoting 3.0.8 ...........................SUCCESS [1.483s] [INFO] rocketmq-common 3.0.8............................. SUCCESS [1.627s] [INFO] rocketmq-client 3.0.8............................. SUCCESS [1.486s] [INFO] rocketmq-store 3.0.8.............................. SUCCESS [1.398s] [INFO] rocketmq-broker 3.0.8............................. SUCCESS [1.512s] [INFO] rocketmq-tools 3.0.8.............................. SUCCESS [1.125s] [INFO] rocketmq-research 3.0.8........................... SUCCESS [0.917s] [INFO] rocketmq-namesrv 3.0.8............................ SUCCESS [0.609s] [INFO] rocketmq-example 3.0.8............................ SUCCESS [0.604s] [INFO] rocketmq-qatest 3.0.8............................. SUCCESS [0.057s] [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO]------------------------------------------------------------------------ [INFO] Total time: 18.145s [INFO] Finished at: Fri Mar 28 10:36:08 CST2014 [INFO] Final Memory: 60M/395M [INFO]------------------------------------------------------------------------ D:\machine\RocketMQ-3.0.8\RocketMQ-3.0.8>
接下来把编译好的项目copy出来
D:\machine\RocketMQ-3.0.8\RocketMQ-3.0.8\target> xcopy /E alibaba-rocketmq-3.0.8 D:\machine\RocketMQ-3.0.8\ D:\machine\RocketMQ-3.0.8>dir 驱动器 D 中的卷是 软件 卷的序列号是000F-1D4F D:\machine\RocketMQ-3.0.8 的目录 2014/03/28 10:44 <DIR> . 2014/03/28 10:44 <DIR> .. 2014/03/28 10:44 <DIR> alibaba-rocketmq 2014/03/07 15:08 52pax_global_header 2014/03/28 10:37 <DIR> RocketMQ-3.0.8 1 个文件 52 字节 4 个目录 105,101,885,440 可用字节 D:\machine\RocketMQ-3.0.8>cd alibaba-rocketmq
启动服务
//启动mqnamesrv
D:\machine\RocketMQ-3.0.8\alibaba-rocketmq>start/b bin/mqnamesrv.exe >D:\logs\alibaba-rocketmq/mqnamesrv.log
可以通过jps查看一下是不是有了RocketMQ的进程,如下方的6484
C:\Users\houchangren>jps -v 6484 -Djava.ext.di