1.启动namesrv命令
nohup sh bin/mqnamesrv >/dev/null 2>&1 &
2.启动broker命令
nohup sh bin/mqbroker -n localhost:9876 >/dev/null 2>&1 &
nohup sh bin/mqbroker -n localhost:9876 autoCreateTopicEnable=true >/dev/null 2>&1 &
3.关闭broker命令
sh bin/mqshutdown broker
4.关闭namesrv命令
sh bin/mqshutdown namesrv