1, view the process
#ps -aux | grep nginx *
The above command indicates to see nginx processes associated
2, kill the process
#kill -9 7819
The above command indicates that for the process to kill the pid of 7819
3, Appendix -ps command The parameters :
ps a display of all procedures under the existing terminals, including other users of the program
ps -A show all the program
ps c when the program lists, each program displays instructions real name, does not contain a path through, or resident service parameters
ps -e effect of this parameter is specified and "A" the same parameters
ps e when the program lists, for each display environment variables used by the program
ps f with ASCII shows the correlation between tree structure, character expression programs
ps -H displays a tree structure showing the relationship between programs
ps -N display all programs, in addition to performing ps than the terminal program instructions under
ps s using the procedure program status signal format
ps S when the programs listed, including the interrupted routine data
ps -t < terminal ID > specified terminal number, and list the programs that belong to the terminal set of conditions
ps u user-based format to display the program status
ps x display all programs, not to the terminal to distinguish