监控 tomcat ,如果自动停止了,则重新启动
#!/bin/bashStart=/usr/local/apache-tomcat-8.0.24/bin/startup.shUrl="/usr/local/jdk1.8.0_51/bin/java -Djava.util.logging.config.file=/usr/local/apache-tomcat-8.0.24/conf/logging.properties -Djava.util.logging.manager=org.apach"status1=$(ps -ef | grep "$Url" | grep -v 'grep') if [ "${status1}X" = "X" ];then $Start fi