Mym_zuoyan_Tmac的博客1. 编写脚本 在jar目录下创建脚本,例如:sys.sh while : do run=$(ps -ef |grep "Kenner-service-sys-1.0-SNAPSHOT-exec.jar" |grep -v "grep") if [ "$run" ] ; then echo "The service is alive!...nohup java
啥子名字好的博客./a.sh: line 31: : command not found ./a.sh: line 38: : command not found ./a.sh: line 42: : command not found ./a.sh: line 42: : command not found ./a.sh: line 59: syntax error near unexpectedtoken ...