A启动server: nohup sh mqnamesrv &
A启动broken: nohup sh mqbroker -c /opt/rocketmq432/conf/2m-noslave/broker-a.properties autoCreateTopicEnable=true >/tmp/logs/mq.log 2>&1 &

nohup sh mqbroker -n 192.168.102.69:9876 autoCreateTopicEnable=true >/tmp/logs/mq.log 2>&1 &


nohup sh mqnamesrv &
nohup sh mqbroker -c /opt/rocketmq432/conf/2m-noslave/broker-b.properties autoCreateTopicEnable=true >/tmp/logs/mq.log 2>&1 &

 


export NAMESRV_ADDR=localhost:9876
sh bin/tools.sh org.apache.rocketmq.example.quickstart.Producer

sh bin/tools.sh org.apache.rocketmq.example.quickstart.Consumer

停服务:

sh mqshutdown broker

sh mqshutdown namesrv

posted on 2019-03-14 20:44  爱技术努力学技术  阅读(7608)  评论(0编辑  收藏  举报