For details see: https://www.cnblogs.com/dengyungao/p/8523628.html
1. Review process
There are two commands you can see the process, namely ps and Top (recommended), then what are their differences
top: dynamically view the current process, more information is displayed, and the various processes of change in real time cpu utilization will be displayed.
1.ps usage instructions
This directive is too complicated option, write down the usual two on the line, as follows
1. Review the process of their own bash
ps -l // access to their own bash process
As shown above, we now command ps -l found the information on the process of their own bash, but these fields What does it mean?
2. Check the system all the processes running
ps aux // Check out all processes
Meaning of each field in the image above is as follows:
Usage instructions 2.top
Observation top instruction changes the program, which can continuously detect the operating state of the program.
The meaning of each field of the image above is as follows:
2. Check the relationship between process
pstree instruction is a tree structure shows the relationship between the various processes
3. Management Program
Programs can be controlled between each other! For example, you can turn off, restart the server software, server software itself is a program, since you can make it shut down or start, of course, is that the program can control it! The program is how to manage it with each other? In fact, by giving the program a signal (signal), to inform the program you want doing it! So the signal is very important.
1.kill instruction
This instruction is only suitable to kill a single process .
Instruction: kill -signal process number // command to kill the process by feedbacks
Format can be found through the kill command, if you want to use the kill command to kill a process, you must know the process ID.
2.killall instruction
The instructions for killing a service, because the instruction can be among all the system processes all start with the name of a command to kill all .
killall -signal to specify the name of the command name //
The following two examples: