From 22e5daff2b595d782048298130c6cb1df2998af6 Mon Sep 17 00:00:00 2001 From: "PC-202302260912\\Administrator" <1769111741@qq.com> Date: Wed, 26 Jul 2023 15:53:18 +0800 Subject: [PATCH] =?UTF-8?q?gm=E9=87=8D=E5=90=AF=E8=84=9A=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- conf/gm_reboot.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 conf/gm_reboot.sh diff --git a/conf/gm_reboot.sh b/conf/gm_reboot.sh new file mode 100644 index 0000000..a1f2802 --- /dev/null +++ b/conf/gm_reboot.sh @@ -0,0 +1,11 @@ +#!/bin/bash +. /etc/profile +pid=`ps -ef|grep java|grep "admin"|awk '{print $2}'` +kill $pid +sleep 5 + +paths="/data/jieling/gm" + +nohup java -jar -Xms200m -Xmx200m -Xss256K -XX:MaxMetaspaceSize=128m -XX:CompressedClassSpaceSize=64m -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8889 -Dspring.config.location=${paths}/application.properties ${paths}/gm_tw_admin-1.0-SNAPSHOT.jar >${paths}/gm.log & + +#tail -200f ${paths}/gm.log