SpringBoot启停脚本(亲测可用)
startup.sh #!/bin/sh APP_NAME=platform-admin JAVA_OPT=-Xmx256m #has started tpid=`ps -ef|grep ${APP_NAME}|grep -v grep|grep -v kill|awk '{print $2}'` if [[ ${tpid} ]]; then echo error: ${APP_NAME} has started exit 1 fi rm -f tpid nohup /opt/jdk1.8.0_25/bin/java ${JAVA_OPT} -jar ${APP_
用户评论