windows批量启动项目
创建bat文件:
启动nacos和redis
@echo off start cmd /k "cd /d F:\jar\nacos-server-2.0.4\nacos\bin && .\startup.cmd -m standalone" start cmd /k "cd /d F:\jar\Redis-x64-2.8.2103 && redis-server redis.windows.conf" exitq
启动java项目
@echo off start cmd /k "cd /d F:\jar_new && java -jar xxx.jar" start cmd /k "cd /d F:\jar_new && java -jar xxx.jar" exit