目录
启动nameserver
启动broker
关闭namesrv服务:
关闭broker服务 :
启动nameservercd /opt/rocketmq-all-4.3.0-bin-release
# nohup sh bin/mqnamesrv & #启动每个服务器的nameserver
# tail -f nohup.out
The Name Server boot success #输出此类信息,说明启动成功
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-bcd /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-scd /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-scd /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