且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

杀死一个python进程

更新时间:2022-06-22 02:41:26

ps a以获取您的进程的PID. kill -9 <pid>向其发送不可阻塞的SIGKILL信号.

ps a to get the PID of your process. kill -9 <pid> to send it the unblockable SIGKILL signal.

请注意,我前面只有一个Linux机器可以测试,因此OS X命令可能略有不同.

Note that I only have a Linux box in front of me to test, so the OS X commands may be slightly different.