Rockmq部署

一、需要提供软件包

server-jre-8u121-linux-x64.tar.gz
alibaba-rocketmq-3.2.6.tar.gz

二、解压到指定目录

tar xfv server-jre-8u121-linux-x64.tar.gz
tar xfv alibaba-rocketmq-3.2.6.tar.gz

三、配置环境变量

export JAVA_HOME=/usr/local/zyqt/jdk
export ROCKETMQ_HOME=/usr/local/zyqt/rocketmq
export PATH=ROCKETMQ_HOME/bin:$PATH

四、验证java

[root@zyqt04 ~]# java -version
java version "1.8.0_121"
Java(TM) SE Runtime Environment (build 1.8.0_121-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.121-b13, mixed mode)

五、添加权限

rocketmq/bin/;chmod +x mqadmin mqbroker mqfiltersrv mqshutdown mqnamesrv

六、启动nameserver

nohup mqnamesrv >/var/log/ns.log &

七、验证nameserver是否启动

tail -f /var/log/ns.log
The Name Server boot success.

八、启动broker

nohup sh mqbroker -n localhost:9876 &

你可能感兴趣的:(Rockmq部署)