http://my.oschina.net/vshcxl/blog/712961

 

1.开机自启动tomcat问题:
在centos的/etc/init.d/tomcat中配置如下(没有该文件就从服务器中下载一个改名字和重新编辑)

——————————————————
2.  chmod +x  /etc/init.d/tomcat

chkconfig –add tomcat

chkconfig tomcat on

service tomcat start