首页 > 代码库 > Tomcat启动脚本

Tomcat启动脚本

start.sh

#!/bin/shJAVA_HOME="/root/app/jdk1.8.0_25"CATALINA_BASE="/root/app/apache-tomcat-8.0.15"CATALINA_HOME="/root/app/apache-tomcat-8.0.15"JRE_HOME="/root/app/jdk1.8.0_25"JAVA_OPTS="-server -Xms1g -Xmx1g -Xmn512m -Xss1024K -XX:PermSize=256m -XX:MaxPermSize=512m -XX:ParallelGCThreads=8 -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:+UseCMSCompactAtFullCollection -XX:SurvivorRatio=4 -XX:MaxTenuringThreshold=10 -XX:CMSInitiatingOccupancyFraction=80"sh bin/startup.sh

stop.sh

#!/bin/shJAVA_HOME="/root/app/jdk1.8.0_25"CATALINA_BASE="/root/app/apache-tomcat-8.0.15"CATALINA_HOME="/root/app/apache-tomcat-8.0.15"JRE_HOME="/root/app/jdk1.8.0_25"sh bin/shutdown.sh

restart.sh

#!/bin/shsh ./stop.shsh ./start.sh

Tomcat启动脚本