#!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.
touch /var/lock/subsys/local
export JAVA_HOME=/usr/java/jdk1.6.0_16
export JRE_HOME=$JAVA_HOME/jre
export TOMCAT_HOME=/usr/tomcat
export CLASSPATH=$CLASSPATH:$JAVA_HOME/lib:$JAVA_HOME/jre/lib
export PATH=$JAVA_HOME/bin:$JAVA_HOME/jre/bin:$PATH:$HOME/bin:/usr/local/mysql/bin:.:$TOMCAT_HOME/bin
cd /usr/local/mysql/bin
./mysqld_safe --user=mysql &
sleep 10
cd $TOMCAT_HOME/bin
sh startup.sh &
#cd /usr/tomcat/jar
#nohup java -jar wapProxy.jar &
cd /usr/tomcat/webapps/ROOT
sh startsms.sh
cd /usr/tomcat/webapps/masclient/WEB-INF/classes
sh startmc.sh
linux 启动tomcat
最新推荐文章于 2024-08-15 10:49:31 发布