0
点赞
收藏
分享

微信扫一扫

停止特定端口进程(主要用来停止指定的服务).cmd


spring boot@echo off
set port=8087
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 q
)
:q
REM 启动jar包服务
REM @echo off
REM start javaw -jar MyBlog.jar
REM exit

举报

相关推荐

0 条评论