方法一:
ps -ef | grep tomcat | grep -v grep | awk '{print $2}' | xargs kill -9
方法二:
ps -ef | awk '/tomcat/ && !/awk/ {print $2}' | xargs -r kill -9
方法一:
ps -ef | grep tomcat | grep -v grep | awk '{print $2}' | xargs kill -9
方法二:
ps -ef | awk '/tomcat/ && !/awk/ {print $2}' | xargs -r kill -9