#!/bin/sh
# south
PROCESS=`ps -ef|grep mblog-latest.jar|grep -v grep|grep -v PPID|awk '{ print $2}'`
for i in $PROCESS
do
echo "Kill the $1 process [ $i ]"
kill -9 $i
done
cd /root/mblog
nohup java -jar mblog-latest.jar > nohup.out 2>&1 &
注意:本文归作者所有,未经作者允许,不得转载