我无法在linux中杀死我的python脚本(I can´t kill my python script in linux)

编程入门 行业动态 更新时间:2024-10-22 12:26:49
我无法在linux中杀死我的python脚本(I can´t kill my python script in linux)

我试图杀死我的python进程并始终在那里。

也尝试使用sudo ,如果我使用顶级命令,过程仍然存在。

python脚本是由我创建的,没有其他进程在不断调用。

ubuntu@ip-*******:~/Desktop/Servidor$ pkill python -e python killed (pid 1284) ubuntu@ip-*******:~/Desktop/Servidor$ pkill python -e python killed (pid 1284) ubuntu@ip-*******:~/Desktop/Servidor$ pkill python -e python killed (pid 1284)

I'm trying to kill my python process and always still there.

Also try using sudo and if I use top comand, the process is still there.

The python script was created by me, and no other process is continually calling.

ubuntu@ip-*******:~/Desktop/Servidor$ pkill python -e python killed (pid 1284) ubuntu@ip-*******:~/Desktop/Servidor$ pkill python -e python killed (pid 1284) ubuntu@ip-*******:~/Desktop/Servidor$ pkill python -e python killed (pid 1284)

最满意答案

你可以使用的东西相当野蛮,适用于任何流氓过程

ps ax|grep python|cut -c1-5|xargs kill -9

以sudo身份运行。

Something you can use that is fairly brutal and will work for any rogue process is

ps ax|grep python|cut -c1-5|xargs kill -9

run as sudo.

更多推荐

本文发布于:2023-08-01 03:02:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1353749.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:脚本   python   linux   kill   script

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!