一.killandclean.sh #!/bin/bash pid=($(ps -ef | grep tomcat | egrep -v grep | awk '{print $2}')) length=${#pid[*]} if [ $length -gt 0 ] then for i in $pid do `kill -9 $i` done echo 'kill over ...' fi cd /usr/local/tomcat7-starfast-web-80/webapps/ rm -r…