安装rocketmq单节点
程序员文章站
2022-05-19 09:05:35
...
安装rocketmq
下载
去官网下载
http://rocketmq.apache.org/
设置环境变量
export rocketmq=/root/rocketmq
export PATH=$PATH:$rocketmq/bin
export NAMESRV_ADDR=127.0.0.1:9876
启动
启动nameserver
nohup bin/mqnamesrv > /root/rocketmq/logs/mqnamesrv.log 2>&1 &
启动broker
nohup bin/mqbroker -n localhost:9876 > /root/rocketmq/logs/broker.log 2>&1 &
关闭
bin/mqshutdown broker
bin/mqshutdown namesrv
测试
bin/tools.sh org.apache.rocketmq.example.quickstart.Producer
bin/tools.sh org.apache.rocketmq.example.quickstart.Consumer
上一篇: MySQL 8.0常用操作
下一篇: Nginx白名单设置