linux中将程序加入到开机自动启动
2013-09-24 16:00
183 查看
如果将在linux中将命令或者程序设置为开机自动启动,只需要进入到将对应命令加入到/etc/rc.d/rc.local文件里即可,如下
打开文件,vi /etc/rc.d/rc.local
#!/bin/sh
#
# 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.
touch /var/lock/subsys/local
/usr/local/apache-tomcat-6.0.37/bin/startup.sh --设置tomcat为开机自动启动程序。
sh /rpc_start.sh ---设置rpc_start.sh脚本为开机自动启动程序。
~
打开文件,vi /etc/rc.d/rc.local
#!/bin/sh
#
# 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.
touch /var/lock/subsys/local
/usr/local/apache-tomcat-6.0.37/bin/startup.sh --设置tomcat为开机自动启动程序。
sh /rpc_start.sh ---设置rpc_start.sh脚本为开机自动启动程序。
~
相关文章推荐
- linux程序开机自动启动方法
- Linux下如何让自己的程序在开机时自动启动
- linux下设置开机自动启动程序的方法
- Linux开机自动启动程序
- LinuxServer开机自动登录和自启动程序设置
- 在linux下设置开机自动启动程序的方法
- linux添加开机自动启动程序
- 在Linux系统如何让程序开机时自动启动
- 在linux下设置开机自动启动程序的方法[转]
- 在linux下设置开机自动启动程序的方法
- 在linux下设置开机自动启动程序的方法
- Java程序作linux服务并且开机自动启动
- 在linux下设置开机自动启动程序的方法
- 在linux下设置开机自动启动程序的方法
- Linux系统下tomcat加入系统服务以及开机自动启动
- Linux下如何让自己的程序在开机时自动启动
- linux下如何设置开机自动启动程序
- Linux开机自动启动程序
- 使用Java Service Wrapper将java程序作为linux服务并且开机自动启动
- 在linux下设置开机自动启动程序的方法