Mac OS X终端killall不会杀死正在运行的进程

Geu*_*uis 9 macos terminal

我有一个lighttpd运行的实例.当我执行"ps -axc"时,该过程列为

"614 ?? 0:00.15 lighttpd"
Run Code Online (Sandbox Code Playgroud)

但是,当我做"killall lighttpd"时,我得到了

No matching processes belonging to you were found
Run Code Online (Sandbox Code Playgroud)

我在Mac OS X 10.5.6上.有什么我想念的吗?

And*_*ffe 19

根据其他回复,如果不是您的流程,请sudo在您是管理员的前提.如果没有,你可能会失败.

另外,尝试sudo killall -9 lighttpd发送特定信号KILL而不是TERM.

只是为了确保您也可以尝试sudo kill -9 614使用PID.


小智 5

任务是否写在ps aux列表的括号中?如果是这样,那就是僵尸,它正在等待某些I / O任务,而该任务可能永远不会完成。据我所知,你无法杀死它。