Linux query process and stop process

Source: Internet
Author: User

1. Ps-ef |grep Redis

PS: Show a process
-a displays all programs.
-E The effect of this parameter is the same as specifying the "A" parameter.
-F Displays Uid,ppip,c and Stime fields.
The grep command is to find
The Middle | is a pipeline command that refers to the PS command executing concurrently with grep

This command is meant to show the processes related to Redis

2. kill[parameter [process number]

Kill-9 4394

Kill is a signal sent to a process ID. The signal sent by default is Sigterm, and the signal sent by Kill-9 is Sigkill, which is exit. The exit signal is not blocked by the system, so the kill-9 can kill the process successfully. Of course you can also use kill to send other signals to the process.

Linux query process and stop process

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.