https://zhidao.baidu.com/question/1500084252693125099.html
// command by killall
killall Nginx
// through the pkill command, similar to + kill the pgrep
pkill Nginx
// Find first and then kill by way
ps -ef | grep nginx | grep -v grep | awk '{print $ 2}' | xargs -9 the kill
// with cut -c to intercept specified location string
PS -ef | grep nginx | grep -v grep | cut -c 11-15 | xargs -9 the kill
// by pgrep command to find out all by name containing the name of the process ID
pgrep nginx | xargs the kill -9
// by pidof instructions to find out the full name of the process according to the process number
pidof nginx | the kill -9
// in addition to the pipe character mode, can be replaced with the command, so do not xargs conversion parameters by the
kill -9 `pgrep nginx`