1.Clone&Buildgit
git clone -b develop https://github.com/apache/incubator-rocketmq.git cd incubator-rocketmq mvn -Prelease-all -DskipTests clean install -U cd distribution/target/apache-rocketmq
2.Start NameServergithub
nohup sh bin/mqnamesrv & tail -f ~/logs/rocketmqlogs/namesrv.log The Name Server boot success...
3.Start Brokerapache
nohup sh bin/mqbroker -n localhost:9876 & tail -f ~/logs/rocketmqlogs/broker.log The broker[%s, 172.30.30.233:10911] boot success...
Spring整合:http://blog.csdn.net/sqzhao/article/details/54834755ui
1.Mavenspa
<!-- https://mvnrepository.com/artifact/com.alibaba.rocketmq/rocketmq-client --> <dependency> <groupId>com.alibaba.rocketmq</groupId> <artifactId>rocketmq-client</artifactId> <version>3.5.9</version> </dependency>
1.啓動報錯(內存不足).net
VM warning: INFO: OS::commit_memory(0x00000006c0000000, 2147483648, 0) faild; error=’Cannot allocate memory’ (errno=12)
修改啓動腳本runserver.sh、runbroker.sh中的「JAVA_OPT」內存分配。code
http://rocketmq.incubator.apache.org/docs/quick-start/server