如何在LinuxShell中强制python退出

 

root@iZ23he122ynZ:~# ps -ef|grep python

root     16346     1  0 May28 ?        00:00:11 python WebMain.py 81

root     16871 16849  0 08:44 pts/0    00:00:00 grep --color=auto python

root@iZ23he122ynZ:~# 

 

想要结束

root     16346     1  0 May28 ?  00:00:11 python WebMain.py 81

那就直接运行命令 

ps -ef|grep WebMain.py|grep -v grep|cut -c 9-15|xargs kill -9

 

猜你喜欢

转载自blog.csdn.net/qq_33124081/article/details/80804892