通过命令行调用 Windows Terminal 启动 RocketMQ NameServer 和 Broker

x33g5p2x  于2021-11-22 转载在 其他  
字(0.8k)|赞(0)|评价(0)|浏览(534)

文件

callSingleMqbroker.cmd

call "%ROCKETMQ_HOME%\bin\mqbroker.cmd" -n localhost:9876 autoCreateTopicEnable=true

startNamesvr&BrokerInWinTerminal.sh

{0caa0dad-35be-5f56-a8ff-afceeeaa6101} 改成“设置” -> “打开 JSON 文件” 当中指定命令行的 guid 即可,或者删掉 -p “xxx” 也没关系,毕竟只是调用两个文件,任意一种命令行程序都可以的吧。

#!/bin/bash
wt nt -p "{0caa0dad-35be-5f56-a8ff-afceeeaa6101}" "%ROCKETMQ_HOME%\bin\mqnamesrv.cmd" \`\; sp -p "{0caa0dad-35be-5f56-a8ff-afceeeaa6101}" "%ROCKETMQ_HOME%\callSingleMqbroker.cmd"

startNamesvr&BrokerInWinTerminal.cmd

wt nt -p "{0caa0dad-35be-5f56-a8ff-afceeeaa6101}" "%ROCKETMQ_HOME%\bin\mqnamesrv.cmd" `; sp -p "{0caa0dad-35be-5f56-a8ff-afceeeaa6101}" "%ROCKETMQ_HOME%\callSingleMqbroker.cmd"

参考

相关文章