shell脚本实现程序重启
摘要:
NAME="demo-0.0.1-SNAPSHOT.jar" #想要杀死的进程ID=`ps -ef | grep "$NAME" | grep -v "grep" | awk '{print $2}'`if [ -z "$ID" ];then echo "process id is empty, p 阅读全文
posted @ 2020-08-03 16:38 灬菜鸟灬 阅读(1106) 评论(0) 推荐(0) 编辑