授权
chmod 777 文件名
java -jar net-0.0.1-SNAPSHOT.war --spring.profiles.active=local
sp_pid=`ps -ef | grep net-0.0.1-SNAPSHOT.war | grep -v grep | awk '{print $2}'` if [ -z "$sp_pid" ]; then echo "[ not find net-0.0.1-SNAPSHOT.war pid ]" else echo "find result: $sp_pid " kill -9 $sp_pid fi