方法一:
kill -9 $(ps -ef | grep nginx | grep -v grep | awk '{print $2}')
方法二:
ps -ef | grep nginx | grep -v grep | awk '{print $2}' | xargs kill -9