Linux(CentOS):设置开机自动启动Tomcat 在 /etc/rc.d/rc.local 添加: /media/apache-tomcat-6.0.39/bin/start.sh & &代表异步的意思。路径根据自己Tomcat的目录来写,我的Tomcat安装在了 /media/ 下。