1 根据脚本名称搜索脚本执行的进程:
ps -ef|grep run.sh #替换为自己的sh脚本
2 根据pid杀掉:
kill -9 5188
linux关闭正在执行的sh脚本
原文:https://www.cnblogs.com/7thBird/p/13295757.html