Last login: Mon Aug 25 09:45:27 2014 from 10.10.15.6
[root@moshi ~]# vi /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
/opt/tomcat-annex8089/bin/startup.sh
/opt/tomcat-annex8089/bin/startup.sh
为你的tomcat的启动目录,可以配置多个。