首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 软件管理 > 软件架构设计 >

ubuntu 11.04起步文件

2012-09-07 
ubuntu 11.04启动文件Creating /etc/init.d/localsudo vi /etc/init.d/localThis file is a shell script

ubuntu 11.04启动文件
Creating /etc/init.d/local

sudo vi /etc/init.d/local
This file is a shell script and it should start with:

#!/bin/sh
Making the file executable
Make this file executable with:

sudo chmod +x /etc/init.d/local
link the new local file with Init
We are going to use this script a System V init script using:

sudo update-rc.d local defaults 80
An Example
Now you can call your scripts or pograms using this file. For example, to mount a NFS directry at boot time add the following line to /etc/init.d/rc.local


mount server.fossedu.org:/data /data

热点排行