环境: centos7,jdk7
参考:
http://www.cnblogs.com/xiaodf/p/5075167.html
也可参考官网
http://rocketmq.incubator.apache.org/docs/quick-start/
1.下载安装包
https://mirrors.cnnic.cn/apache/maven/maven-3/3.5.0/binaries/apache-maven-3.5.0-bin.tar.gz
2.解压
tar -zxvf alibaba-rocketmq-3.2.6-alibaba-rocketmq.tar.gz -C /apps/installFile/rocketmq/
3.启动NameServer
进入bin目录 /apps/installFile/rocketmq/alibaba-rocketmq/bin ,执行
nohup sh mqnamesrv > /apps/sh/logs/namesrv.log 2>&1 &
4.启动broker
nohup sh mqbroker -n 192.168.158.128:9876 -c ../conf/2m-noslave/broker-a.properties > /apps/sh/logs/bk.log 2>&1 &
5.测试
时间: 2024-10-12 19:24:54