如何杀死Cygwin中的进程? [英] How to kill a process in cygwin?

查看:606
本文介绍了如何杀死Cygwin中的进程?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有以下无法杀死的过程:

Hi i have the following process which i cant kill:

我正在Windows XP 32位环境中运行cygwin.

I am running cygwin in windows xp 32 bit.

我尝试发出以下命令:

/bin/kill -f 4760
/bin/kill -9 5000
kill -9 5000
kill 5000

当我写/bin/kill -f 4760时,收到消息"kill:无法打开pid 4760".

When i write /bin/kill -f 4760 i get the message, 'kill: couldn't open pid 4760'.

当我写/bin/kill -9 5000时,我收到消息"kill:5000:没有这样的过程".

When i write /bin/kill -9 5000 i get the message, 'kill: 5000: No such process'.

我根本不明白为什么这个过程不能被杀死. 由于它具有WINID,是否应该被/bin/kill -f 4760杀死?

I simply don't understand why this process cant be killed. Since it has a WINID shouldnt it be killed by /bin/kill -f 4760?

希望有人可以帮助您:)

hope someone can help thx :)

推荐答案

该进程很可能已从Windows锁定.您得到无法打开PID XXX"的错误指出了这一点. 要确认尝试使用Windows taskkill杀死它

The process is locked from Windows most likely. The error you are getting "couldnt open PID XXX" points to this. To confirm try killing it with windows taskkill

    taskkill /PID 4760

这篇关于如何杀死Cygwin中的进程?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆