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

 

posted @ 2024-09-27 09:50  _Lawrence  阅读(2)  评论(0编辑  收藏  举报