RocketMq集群搭建3——启动

Carmen ·
更新时间:2024-11-10
· 800 次阅读

目录

 

启动nameserver

启动broker

 

关闭namesrv服务:

关闭broker服务 :

启动nameserver

cd /opt/rocketmq-all-4.3.0-bin-release

# nohup sh bin/mqnamesrv &    #启动每个服务器的nameserver
# tail -f nohup.out
The Name Server boot success  #输出此类信息,说明启动成功

启动broker

服务器Namserver1-a

cd /opt/rocketmq-all-4.3.0-bin-release

nohup sh bin/mqbroker -c /opt/rocketmq-all-4.3.0-bin-release/conf/2m-2s-sync/broker-a.properties &

tail -f ~/logs/rocketmqlogs/broker.log

服务器Namserver2-b

cd /opt/rocketmq-all-4.3.0-bin-release

nohup sh bin/mqbroker -c /opt/rocketmq-all-4.3.0-bin-release/conf/2m-2s-sync/broker-b.properties &

tail -f ~/logs/rocketmqlogs/broker.log

  服务器Nameserver1-b-s

cd /opt/rocketmq-all-4.3.0-bin-release


nohup sh bin/mqbroker -c /opt/rocketmq-all-4.3.0-bin-release/conf/2m-2s-sync/broker-b-s.properties &

tail -f ~/logs/rocketmqlogs/broker.log

服务器Nameserver2-a-s

cd /opt/rocketmq-all-4.3.0-bin-release


nohup sh bin/mqbroker -c /opt/rocketmq-all-4.3.0-bin-release/conf/2m-2s-sync/broker-a-s.properties &

tail -f ~/logs/rocketmqlogs/broker.log

测试

当前的四个broker线程都在更新

关闭namesrv服务:

sh bin/mqshutdown namesrv

关闭broker服务 :

sh bin/mqshutdown broker


作者:wenxi2367



rocketmq 启动

需要 登录 后方可回复, 如果你还没有账号请 注册新账号
相关文章