BlueXIII's Blog

热爱技术,持续学习

0%

RocketMQ部署

参考

异步转Reactor

原生方式部署

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# 版本 5.1.4

# 启动
nohup sh bin/mqnamesrv &
nohup sh bin/mqbroker -n localhost:9876 &

# 关闭
sh bin/mqshutdown broker
sh bin/mqshutdown namesrv

# 验证
export NAMESRV_ADDR=10.10.51.4:9876
sh bin/tools.sh org.apache.rocketmq.example.quickstart.Producer
sh bin/tools.sh org.apache.rocketmq.example.quickstart.Consumer

# dashboard
docker run -d --name rocketmq-dashboard -e "JAVA_OPTS=-Drocketmq.namesrv.addr=10.10.51.4:9876" -p 38080:8080 -t apacherocketmq/rocketmq-dashboard:latest

控制台

10.10.51.4:9876
http://10.10.51.4:38080

常用操作

1
sh bin/mqadmin updateTopic -c DefaultCluster -t TopicTest2 -n 10.10.51.4:9876