springboot项目运行shell
#启动脚本文件deploy.sh#!/bin/bashecho "publish----------"process_id=`ps -ef | grep wiki.jar | grep -v grep |awk '{print $2}'`if [ $process_id ] ; thensudo kill -9 $process_idfisource /etc/profilenohup java -jar -Dspring.profiles.active=prod /home