centos下实现程序开机自启动(tomcat为例)

http://blog.csdn.net/fjssharpsword/article/details/7436898

vim /etc/rc.d/rc.local
打开后用下文覆盖即可