你的位置:首页 > Java教程

[Java教程]tomcat的运行脚本

#!/bin/bashcase $1 instart)sh /usr/local/apache-tomcat-8.0.30/bin/startup.sh;;stop)sh /usr/local/apache-tomcat-8.0.30/bin/shutdown.sh;;restart)sh /usr/local/apache-tomcat-8.0.30/bin/shutdown.shsh /usr/local/apache-tomcat-8.0.30/bin/startup.sh;;*)echo “Usage: start|stop|restart”;;esacexit 0