性能指标修改
This commit is contained in:
@@ -1,8 +1,17 @@
|
||||
@echo off
|
||||
echo Stopping gateway2 service...
|
||||
|
||||
REM 强制终止匹配的Java进程
|
||||
taskkill /f /im java.exe /fi "WINDOWTITLE eq *gateway2-0.0.1-SNAPSHOT.jar*" >nul 2>&1
|
||||
taskkill /f /im javaw.exe /fi "WINDOWTITLE eq *gateway2-0.0.1-SNAPSHOT.jar*" >nul 2>&1
|
||||
REM 第一步:找到 gateway2-0.0.1-SNAPSHOT.jar 对应的进程 ID(PID)
|
||||
for /f "tokens=1" %%p in ('jps -l ^| findstr "gateway2-0.0.1-SNAPSHOT.jar"') do (
|
||||
set PID=%%p
|
||||
)
|
||||
|
||||
echo gateway2 service stopped.
|
||||
REM 第二步:如果找到 PID,就终止进程
|
||||
if defined PID (
|
||||
taskkill /f /pid %PID% >nul 2>&1
|
||||
echo Killed process with PID: %PID%
|
||||
) else (
|
||||
echo gateway2 service is not running.
|
||||
)
|
||||
|
||||
echo gateway2 service stopped.
|
||||
Reference in New Issue
Block a user