You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tianze-pro/web/tianzePro_B_Restart.sh

14 lines
429 B
Bash

#! /bin/bash
HOME_PATH=/data/dev
LOG_PATH=/data/logs
rm -rf ${HOME_PATH}/web-1.0.jar
mkdir -p ${HOME_PATH}
mkdir -p ${LOG_PATH}
tar zxvf /home/admin/app/tianzepro-package.tgz -C ${HOME_PATH}
ps -ef | grep java | grep web | grep -v grep | awk '{print$2}' | xargs kill -9
nohup java -Xms256m -Xmx512m -jar -Dspring.profiles.active=prod -Dserver.port=9090 ${HOME_PATH}/web/target/web-1.0.jar > ${LOG_PATH}/tianze-pro.log 2>&1&