結束linux 伺服器系統中一個程式的多個進程

來源:互聯網
上載者:User

標籤:多個進程   結束系統   linux   

如下,當系統的多個相同的程式產生多個進程時想,而又長時間都未失效

# 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 伺服器系統中一個程式的多個進程

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.