[LINUX学习]sheel脚本循环KILL,并启动
#!/bin/shif [ -f ~/.bash_profile ];then . ~/.bash_profileficd /home/ddata/server/stop(){ #kill 掉所有该java程序-循环killjarname='spring-boot-module-system-2.2.0'pids=`ps -ef | grep $jarname | grep -v grep | grep -v kill|awk '{print $2}'`echo $jarnamee
原创
2022-04-16 08:56:13 ·
1222 阅读 ·
0 评论