显示nginx进程:
ps -ef|grep nginx
获取进程ID
ps -ef|grep nginx|awk '{print $2}'
批量kill
ps -ef|grep nginx|awk '{print $2}'|xargs kill -9
ps -ef|grep nginx
ps -ef|grep nginx|awk '{print $2}'
ps -ef|grep nginx|awk '{print $2}'|xargs kill -9