jar包重启shell脚本
工作中经常需要重启jar包,这里写一个restart.sh文件,记录一下
kill -9 $(ps -ef | grep -v grep | grep xxx.jar | awk '{print $2}')
nohup java -Dfile.encoding=utf-8 -Dspring.config.location=/usr/local/bootstrap.yml -jar xxx.jar > log.out 2>&1 &
jar包重启shell脚本
工作中经常需要重启jar包,这里写一个restart.sh文件,记录一下
kill -9 $(ps -ef | grep -v grep | grep xxx.jar | awk '{print $2}')
nohup java -Dfile.encoding=utf-8 -Dspring.config.location=/usr/local/bootstrap.yml -jar xxx.jar > log.out 2>&1 &