# Tomcat 开机启动脚本 **Repository Path**: yxj2006/tomcat_boot_boot_script ## Basic Information - **Project Name**: Tomcat 开机启动脚本 - **Description**: tomcat 开机启动的脚本 - **Primary Language**: Shell - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2018-05-18 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Tomcat 开机启动脚本 #tomcat 开机启动的脚本 #程序代码内容 #!/bin/bash # Tomcat init script for Linux # chkconfig: 2345 96 14 # discription: The Apache Tomcat Server/JSP container JAVA_OPTS='-server -Xms64m -Xmx128m' JAVA_HOME=/usr/java/jdk1.7.0_71 CATALINA_HOME=/usr/local/src/tomcat $CATALINA_HOME/bin/catalina.sh $* 需要在linux主机上执行的命令 #vim /etc/init.d/tomcat #chmod +x /etc/init.d/tomcat #service tomcat start #chkconfig --add tomcat #chkconfig tomcat on