#!/bin/bash
echo "stop SpringBoot"
pid=`ps -ef | grep prison-upms-client.jar | grep -v grep | awk '{print $2}'`
echo "old id:$pid"
if [ -n "$pid" ]
then
kill -9 $pid
fi
cd /usr/local/project
chmod 777 /usr/local/project/prison-upms-client.jar
source /etc/profile
nohup java -Xms128m -Xmx500m -jar prison-upms-client.jar > sys.log 2>&1 &
jar 包运行
nohup java -Xms128m -Xmx500m -jar xxx.jar —httpPort=8000 > xxx.log 2>&1 &