怎样让系统启动的时候将一个程序运行?

我将一些脚本写在了一个文件run里,想让系统启动的时候,同时运行run这个文件,不要自己在手动启动,因为这个文件我每次都是要启动的

谢谢先了

---------------------------------------------------------------

添你的执行文件及路径写到 /etc/rc.d/rc.local文件中
如我要运行我的主目录下的一个a.out程序,就在rc.local中添加一行:
/home/james/a.out

---------------------------------------------------------------

修改macro_love的最后一行:
/home/james/a.out &

Published At
Categories with 服务器类
Tagged with
comments powered by Disqus