ps -ef | grep <程序名> | grep -v grep|cut -c 9-15 | xargs kill -9
示例:
ps -ef | grep nginx | grep -v grep|cut -c 9-15 | xargs kill -9
ps -ef | grep <程序名> | grep -v grep|cut -c 9-15 | xargs kill -9
示例:
ps -ef | grep nginx | grep -v grep|cut -c 9-15 | xargs kill -9