标签归档:自启动

【转载】CentOS添加Tomcat自启动

本文转载自http://www.it165.net/os/html/201211/3973.html

略作修改

系统环境 Centos 5 32位,以下方法亲测有效

1、修改start.sh文件

vim /opt/tomcat /bin/startup.sh

在文件头增加以下内容:

#!/bin/sh

# chkconfig: 2345 97 00

# description:tomcat auto start

#processname: tomcat 继续阅读