springboot 项目启动脚本 linux版本
#!/bin/sh
API_NAME=springboot-project
JAR_NAME=$API_NAME.jar
#PID 代表是PID文件
PID=$API_NAME\.pid
#使用说明,用来提示输入参数
usage() {
echo "Usage: sh 执行脚本.sh [start|stop|restart|status]"
exit 1
}
#检查程序是否在运行
is_exist(){
pid=`ps -ef|grep $JAR_NAME|grep -v gre
原创
2020-10-28 08:56:54 ·
125 阅读 ·
0 评论