CentOS下实现程序开机自启动
2014-06-28 19:49
411 查看
CentOS下实现程序开机自启动(Tomcat为例) :
打开后用下文覆盖即可
vim /etc/rc.d/rc.local
打开后用下文覆盖即可
# 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. export JAVA_HOME=/home/hostname/jdk1.6.0_31 export CLASSPATH=.:$JAVA_HOME/jre/lib/rt.jar:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar export PATH=$PATH:$JAVA_HOME/bin export CATALINA_HOME=/home/hostname/apache-tomcat-6.0.35 #tomcat自启动 /home/hostname/apache-tomcat-6.0.35/bin/startup.sh #其他程序自启动例子 /usr/bin/程序名 touch /var/lock/subsys/local
相关文章推荐
- centos下实现程序开机自启动(tomcat为例)
- C#中实现程序开机自启动
- 实现linux 程序开机自启动
- VC程序实现开机自启动
- CentOS设置程序开机自启动的方法
- Android 开机自启动程序的实现
- 如何实现symbian程序开机自启动(合辑)
- 在symbian系统中实现程序自启动(开机和安装后)
- symbian 利用Recognizer编写自己的MDL实现开机自启动程序
- [转]CentOS设置程序开机自启动的方法
- CentOS设置程序开机自启动的方法
- VC实现程序开机自启动
- CentOS设置程序开机自启动的方法
- CentOS设置程序开机自启动的方法
- Windows程序中实现程序开机自启动
- Debian/Ubuntu Linux实现开机自启动程序
- exe程序有几种方式实现开机自启动
- C#中实现程序开机自启动 三种方式
- CentOS设置程序开机自启动的方法
- 修改注册表 实现开机程序自启动