本地学习dubbo+zookeeper,为了模拟集群,本地启动了3个zookeeper,但是每次都要一个一个的点zkServer.cmd,很麻烦
所以搞了个简单的批处理文件
@echo off
start cmd /k "D:\util\zookeeper\zk1\bin\zkServer.cmd"
start cmd /k "D:\util\zookeeper\zk2\bin\zkServer.cmd"
start cmd /k "D:\util\zookeeper\zk3\bin\zkServer.cmd"
@echo on
双引号中间是zkServer.cmd的地址