diff --git a/script/bin/ry.bat b/script/bin/ry.bat index fd33a721..ae249404 100644 --- a/script/bin/ry.bat +++ b/script/bin/ry.bat @@ -1,21 +1,21 @@ @echo off -rem jarƽ��Ŀ¼ +rem jarƽ¼¶Ä¿Â¼ set AppName=ruoyi-admin.jar -rem JVM���� +rem JVM²ÎÊý set JVM_OPTS="-Dname=%AppName% -Duser.timezone=Asia/Shanghai -Xms512m -Xmx1024m -XX:MetaspaceSize=128m -XX:MaxMetaspaceSize=512m -XX:+HeapDumpOnOutOfMemoryError -XX:+PrintGCDateStamps -XX:+PrintGCDetails -XX:NewRatio=1 -XX:SurvivorRatio=30 -XX:+UseParallelGC -XX:+UseParallelOldGC" ECHO. - ECHO. [1] ����%AppName% - ECHO. [2] �ر�%AppName% - ECHO. [3] ����%AppName% - ECHO. [4] ����״̬ %AppName% - ECHO. [5] �� �� + ECHO. [1] Æô¶¯%AppName% + ECHO. [2] ¹Ø±Õ%AppName% + ECHO. [3] ÖØÆô%AppName% + ECHO. [4] Æô¶¯×´Ì¬ %AppName% + ECHO. [5] ÍË ³ö ECHO. -ECHO.������ѡ����Ŀ�����: +ECHO.ÇëÊäÈëÑ¡ÔñÏîÄ¿µÄÐòºÅ: set /p ID= IF "%id%"=="1" GOTO start IF "%id%"=="2" GOTO stop @@ -35,11 +35,11 @@ PAUSE start javaw %JAVA_OPTS% -jar %AppName% -echo starting���� +echo starting¡­¡­ echo Start %AppName% success... goto:eof -rem ����stopͨ��jps�������pid���������� +rem º¯Êýstopͨ¹ýjpsÃüÁî²éÕÒpid²¢½áÊø½ø³Ì :stop for /f "usebackq tokens=1-2" %%a in (`jps -l ^| findstr %AppName%`) do ( set pid=%%a @@ -48,7 +48,7 @@ rem ����stopͨ��jps�������pid�������� if not defined pid (echo process %AppName% does not exists) else ( echo prepare to kill %image_name% echo start kill %pid% ... - rem ���ݽ���ID��kill���� + rem ¸ù¾Ý½ø³ÌID£¬kill½ø³Ì taskkill /f /pid %pid% ) goto:eof