如何杀死一个nohup的过程? [英] How to kill a nohup process?

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

问题描述

我执行下面的命令

$ nohup ./tests.run.pl 0 &

现在,当我尝试要杀死它(以及从该脚本开始处决)用

now when I try to kill it (and the executions that are started from this script) using

$ kill -0 <process_id>

这是行不通的。我怎样才能杀死一个nohupped进程,通过nohupped脚本运行的过程?

it does not work. How can I kill a nohupped process and the processes that runs via the nohupped script?

感谢

推荐答案

杀-0 做的的终止进程。它只是检查,如果你可以发送信号给它。

kill -0 does not kill the process. It just checks if you could send a signal to it.

简单杀PID ,如果还是不行,请尝试杀-9 PID

Simply kill pid, and if that doesn't work, try kill -9 pid.

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

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