进入tomcat目录 ${PWD} 当前路径 awk '{print $2}' 获取项目线程号 ps -ef|grep ${PWD}|grep java|awk '{print $2}'|xargs kill -9