RocketMq集群搭建3——启动

目录

 

启动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

发布了73 篇原创文章 · 获赞 1 · 访问量 1万+

猜你喜欢

转载自blog.csdn.net/wenxi2367/article/details/104309049

相关文章