首页
学习
活动
专区
圈层
工具
发布
社区首页 >专栏 >windos启动springboot项目脚本

windos启动springboot项目脚本

作者头像
高大北
发布于 2022-06-14 19:54:42
发布于 2022-06-14 19:54:42
1.7K0
举报
代码语言:javascript
复制
@echo off
set port=8808

set port2=8880
for /f "tokens=1-5" %%i in ('netstat -ano^|findstr ":%port%"') do (
    echo kill the process %%m who use the port 
    taskkill /pid %%m -t -f
    goto start
)
for /f "tokens=1-5" %%i in ('netstat -ano^|findstr ":%port2%"') do (
    echo kill the process %%m who use the port2 
    taskkill /pid %%m -t -f
    goto start
)
ping 127.0.0.1 -n 5
start java -jar blct-1.0.jar
exit  
:start
ping 127.0.0.1 -n 5
start java -jar blct-1.0.jar
exit 
本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。
如有侵权请联系 cloudcommunity@tencent.com 删除
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档