Chinaunix
标题:
如何暂停一个process
[打印本页]
作者:
hobby2273
时间:
2007-08-08 12:43
标题:
如何暂停一个process
发现linux 下有一个process占用资源很多,对系统影响很大
有没有办法先暂停这个process,用什么命令呢,各位老大指教!!!
作者:
zhou0953
时间:
2007-08-08 13:10
ctrl+z :暂停 使用jobs可查看 使用fg job_number
ctrl+c :停止
作者:
寂寞烈火
时间:
2007-08-08 13:29
kill -19 pid
作者:
hobby2273
时间:
2007-08-08 17:05
谢谢关注,请问寂寞烈火,kill -19后如何让进程接着运行??
作者:
ailms
时间:
2007-08-08 17:10
[bob@mail crash]$ ps -ef |grep units
bob 4561 3533 0 17:10 pts/0 00:00:00 units
bob 4563 3759 0 17:10 pts/1 00:00:00 grep units
[bob@mail crash]$
[bob@mail crash]$ kill -SIGSTOP 4561
[bob@mail crash]$
复制代码
效果如下 :
[bob@mail ~]$ units
2084 units, 71 prefixes, 32 nonlinear units
You have:
[1]+ Stopped units
[bob@mail ~]$
复制代码
作者:
hobby2273
时间:
2007-08-31 10:41
Tkank you,已经找到答案了,
用kill -19暂停
kill -18继续
在这里谢谢寂寞烈火的指点。。。。
作者:
duowawa
时间:
2007-08-31 15:41
学习~~~~~~~~~~~~~~~~~~~~
欢迎光临 Chinaunix (http://bbs.chinaunix.net/)
Powered by Discuz! X3.2