linux下tomcat手工启动

#!/bin/sh
LANG=zh_CN.GB18030 ; export LANG
LC_ALL=zh_CN.GB18030 ; export LC_ALL

#JAVA_OPTS="-server -Xms600m -Xmx600m    -XX:PermSize=64M -XX:MaxNewSize=256m -XX:MaxPermSize=128m -Djava.awt.headless=true"
#JAVA_HOME=/usr/java ; export JAVA_HOME


/usr/local/tomcat-6.0.18/bin/startup.sh
 
将启动加载到/etc/rc.local
#/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

# configuration the JDK file path
JAVA_HOME=/usr/java/jdk1.6.0_07/
export JAVA_HOME

# startup tomcat
/usr/local/tomcat-6.0.18/bin/mystartup.sh

你可能感兴趣的:(linux,职场,休闲)