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

相关文章:

  • 2021-11-24
  • 2021-08-27
  • 2021-12-17
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-12-07
  • 2021-06-07
  • 2021-11-07
  • 2021-05-30
  • 2021-11-14
相关资源
相似解决方案