d: cd D:\develop\boot set "JAVA=%JAVA_HOME%\bin\java.exe" set "SERVER_JVM_OPTS=-server -Xms2g -Xmx2g -Xmn1g -XX:MetaspaceSize=128m -XX:MaxMetaspaceSize=320m -XX:-OmitStackTraceInFastThrow -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=%BASE_DIR%\logs\java_heapdump.hprof -XX:-UseLargePages" set "SERVER_OPTS= -jar boot.jar " set COMMAND="%JAVA%" %SERVER_JVM_OPTS% %SERVER_OPTS% maxzhao.boot.app %* %COMMAND%
停止
1 2 3 4 5 6 7 8 9 10
if not exist "%JAVA_HOME%\bin\jps.exe" echo Please set the JAVA_HOME variable in your environment, We need java(x64)! jdk8 or later is better! & EXIT /B 1
setlocal
set "PATH=%JAVA_HOME%\bin;%PATH%" echo killing boot server
for /f "tokens=1" %%i in ('jps -m ^| find "maxzhao.boot.app"') do ( taskkill /F /PID %%i )