shutdown.sh 208 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 #!/bin/bash echo "stop SpringBoot BAppApiServerApplication" pid=`ps -ef | grep cms-scheduler-1.0.jar | grep -v grep | awk '{print $2}'` echo "旧应用进程id:" $pid if [ -n "$pid" ] then kill -9 $pid fi