From 2ee2e4505a34f80873806c152faca4af514e1113 Mon Sep 17 00:00:00 2001 From: 疯狂的狮子li <15040126243@163.com> Date: 星期三, 02 六月 2021 14:28:40 +0800 Subject: [PATCH] fix 修复配置文件书写错误 --- ry.sh | 12 ++++++++---- 1 files changed, 8 insertions(+), 4 deletions(-) diff --git a/ry.sh b/ry.sh index ecf7a5f..d296c55 100644 --- a/ry.sh +++ b/ry.sh @@ -1,8 +1,12 @@ -#!/bin/bash - +#!/bin/sh +# author ruoyi +# ./ry.sh start 鍚姩 +# ./ry.sh stop 鍋滄 +# ./ry.sh restart 閲嶅惎 +# ./ry.sh start 鐘舵�� AppName=ruoyi-admin.jar -#JVM鍙傛暟 +# JVM鍙傛暟 JVM_OPTS="-Dname=$AppName -Duser.timezone=Asia/Shanghai -Xms512M -Xmx512M -XX:PermSize=256M -XX:MaxPermSize=512M -XX:+HeapDumpOnOutOfMemoryError -XX:+PrintGCDateStamps -XX:+PrintGCDetails -XX:NewRatio=1 -XX:SurvivorRatio=30 -XX:+UseParallelGC -XX:+UseParallelOldGC" APP_HOME=`pwd` LOG_PATH=$APP_HOME/logs/$AppName.log @@ -34,7 +38,7 @@ function stop() { echo "Stop $AppName" - + PID="" query(){ PID=`ps -ef |grep java|grep $AppName|grep -v grep|awk '{print $2}'` -- Gitblit v1.9.3