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
爱技术就是不爱学技术,但为了完成新的工作任务,又不得不去学新技术,但非自愿!