End multiple processes for a program in a Linux server system

Source: Internet
Author: User

as follows, when many of the same programs in the system generate multiple processes, and long time is not invalidated

# 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




You can use the following command to kill all processes

# PS aux | grep ' 172.17.221.254 ' | awk ' {print '} ' | Xargs Kill



This article is from the "LIHONGWEIBJ" blog, make sure to keep this source http://lihongweibj.blog.51cto.com/6235038/1619198

End multiple processes for a program in a Linux server system

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.