只要在/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
exportJDK_HOME=/data/jdk1.7.0_10
exportJAVA_HOME=/data/jdk1.7.0_10
su- erpuser01 -c "/data/product/apache-tomcat-6.0.33/bin/startup.sh&"
su- erpuser01 -c "/data/sms/apache-tomcat-6.0.29-SmsWebService/bin/startup.sh&"
su- erpuser01 -c "/data/apache-tomcat-API/bin/startup.sh &"