首页 > 系统服务 > 详细

结束linux 服务器系统中一个程序的多个进程

时间:2015-03-11 15:11:48      阅读:183      评论:0      收藏:0      [点我收藏+]

如下,当系统的多个相同的程序产生多个进程时想,而又长时间都未失效

# ps aux | grep ‘172.17.221.254‘

 2547 root     /root/cntl -h 172.17.221.254 -p

 6646 root     /root/cntl -h 172.17.221.254 -p

 9606 root     /root/cntl -h 172.17.221.254 -p

12820 root     /root/cntl -h 172.17.221.254 -p

13649 root     /root/cntl -h 172.17.221.254 -p

14331 root     /root/cntl -h 172.17.221.254 -p

17033 root     /root/cntl -h 172.17.221.254 -p

17634 root     /root/cntl -h 172.17.221.254 -p

18023 root     /root/cntl -h 172.17.221.254 -p

18139 root     /root/cntl -h 172.17.221.254 -p

19469 root     /root/cntl -h 172.17.221.254 -p

20605 root     /root/cntl -h 172.17.221.254 -p

20732 root     /root/cntl -h 172.17.221.254 -p

20873 root     /root/cntl -h 172.17.221.254 -p

24435 root     /root/cntl -h 172.17.221.254 -p

25769 root     /root/cntl -h 172.17.221.254 -p

25833 root     /root/cntl -h 172.17.221.254 -p

27156 root     /root/cntl -h 172.17.221.254 -p

27635 root     /root/cntl -h 172.17.221.254 -p

27902 root     /root/cntl -h 172.17.221.254 -p

29906 root     /root/cntl -h 172.17.221.254 -p

30845 root     /root/cntl -h 172.17.221.254 -p

31260 root     /root/cntl -h 172.17.221.254 -p

31920 root     /root/cntl -h 172.17.221.254 -p

32886 root     /root/cntl -h 172.17.221.254 -p

33634 root     /root/cntl -h 172.17.221.254 -p

33970 root     /root/cntl -h 172.17.221.254 -p

34286 root     /root/cntl -h 172.17.221.254 -p

40213 root     /root/cntl -h 172.17.221.254 -p

40307 root     /root/cntl -h 172.17.221.254 -p

41810 root     /root/cntl -h 172.17.221.254 -p

42741 root     /root/cntl -h 172.17.221.254 -p

42967 root     /root/cntl -h 172.17.221.254 -p

44219 root     /root/cntl -h 172.17.221.254 -p

44721 root     /root/cntl -h 172.17.221.254 -p

45727 root     /root/cntl -h 172.17.221.254 -p

46183 root     /root/cntl -h 172.17.221.254 -p

46594 root     /root/cntl -h 172.17.221.254 -p

48831 root     /root/cntl -h 172.17.221.254 -p

49821 root     /root/cntl -h 172.17.221.254 -p

51622 root     /root/cntl -h 172.17.221.254 -p

51766 root     /root/cntl -h 172.17.221.254 -p

51911 root     /root/cntl -h 172.17.221.254 -p

52141 root     /root/cntl -h 172.17.221.254 -p

53637 root     /root/cntl -h 172.17.221.254 -p

54877 root     /root/cntl -h 172.17.221.254 -p

54895 root     grep 172.17.221.254

56195 root     /root/cntl -h 172.17.221.254 -p

56410 root     /root/cntl -h 172.17.221.254 -p

56610 root     /root/cntl -h 172.17.221.254 -p

58340 root     /root/cntl -h 172.17.221.254 -p

60099 root     /root/cntl -h 172.17.221.254 -p

61556 root     /root/cntl -h 172.17.221.254 -p

63033 root     /root/cntl -h 172.17.221.254 -p

65027 root     /root/cntl -h 172.17.221.254 -p




可以使用以下命令来杀掉所有进程

# ps aux | grep ‘172.17.221.254‘ | awk ‘{print $1}‘ | xargs kill



本文出自 “lihongweibj” 博客,请务必保留此出处http://lihongweibj.blog.51cto.com/6235038/1619198

结束linux 服务器系统中一个程序的多个进程

原文:http://lihongweibj.blog.51cto.com/6235038/1619198

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!