springboot項目在linux上長久運行的shell腳本

啓動腳本start.shjava nohup java -jar system-2.4.jar --spring.profiles.active=prod & 終止腳本stop.shspring PID=$(ps -ef | grep system-2.4.jar | grep -v grep | awk '{ print $2 }') if [ -z "$PID" ] then echo App
相關文章
相關標籤/搜索