Browse Source

增加添加站点对外接口

Jack 11 months ago
parent
commit
91813f1ca6
1 changed files with 6 additions and 0 deletions
  1. 6 0
      jeecg-boot/start.sh

+ 6 - 0
jeecg-boot/start.sh

@@ -20,4 +20,10 @@ else
     exit 1
 fi
 
+# 检查Java进程是否存在
+PID=$(ps -ef | grep jeecg-system-start-3.6.3.jar | grep -v grep | awk '{print $2}')
+if [[ -n ${PID} ]]; then
+echo "Java process is running, PID is ${PID}. Killing..."
+kill -9 ${PID}
+fi
 nohup java -jar "$PROJECT_PATH/jeecg-module-system/jeecg-system-start/target/jeecg-system-start-3.6.3.jar" --spring.profiles.active=prod >/home/centos/okki-oms/jeecg-boot/logs/out.log &