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