(一)RocketMq入门之安装运行
一、几个重要的地址
Git地址:https://github.com/apache/incubator-rocketmq 编译好的文件:https://rocketmq.incubator.apache.org/dowloading/releases/ 快速入门:https://rocketmq.incubator.apache.org/docs/quick-start/
二、下载及编译(以下内容基本出自【快速入门】)
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
三、启动NameServer
nohup sh bin/mqnamesrv &
日志跟踪:tail -f ~/logs/rocketmqlogs/namesrv.log
四、启动Broker
nohup sh bin/mqbroker -n localhost:9876 & 日志跟踪:tail -f ~/logs/rocketmqlogs/broker.log
五、关闭NameServer
sh bin/mqshutdown namesrv
六、关闭Broker
sh bin/mqshutdown broker
上善若水,水利万物而不争。