1. 将下面的脚本保存为/etc/init.d/tomcat
#/bin/bash
#
# /etc/rc.d/init.d/tomcat
#
# Starts the tomcat daemon
# Write By Kevin Zou
#
# chkconfig: 345 87 13
# description: Tomcat is a JAVA World Wide Web server. It is used to serve \
# JSP files .
# processname: tomcat or clutomcat
. /etc/init.d/functions
#Set default LANG
LANG="zh_CN.GB2312"
LANGUAGE="zh_CN.GB2312:zh_CN.GB18030:zh_CN.GBK:zh_CN:zh"
SUPPORTED="zh_CN.GB2312:zh_CN.GB18030:zh_CN.GBK:zh_CN:zh:en_US.UTF-8:en_US:en"