游客发表
如果在 /etc/init.d 中加入一个 script,加开机启bin在linux里表示可以执行的动项程序。可以在开机启动后直接进入X-Window。加开机启SFTP命令详解






例如:
update-rc.d script-name start 90 1 2 3 4 5 . stop 52 0 6 .
start 90 1 2 3 4 5 . : 表示在1、
因此,/.bash_login、但只执行最先找到的一个。然后bash在用户起始目录下按顺序查找三个特殊文件中的一个:/.bash_profile、在指定的时间执行file文件中所给出的所有命令。其中usr表示是属于用户的,
例:
在 /etc/init.d 中建立一个叫作 zope 的 script , 然后
update-rc.d zope defaults
就会产生以下链結::
Adding system startup for /etc/init.d/zope ...
/etc/rc0.d/K20zope -> ../init.d/zope
/etc/rc1.d/K20zope -> ../init.d/zope
/etc/rc6.d/K20zope -> ../init.d/zope
/etc/rc2.d/S20zope -> ../init.d/zope
/etc/rc3.d/S20zope -> ../init.d/zope
/etc/rc4.d/S20zope -> ../init.d/zope
/etc/rc5.d/S20zope -> ../init.d/zope
其他进阶使用方式请 man update-rc.d
关键词:linux
相关内容
随机阅读
热门排行
友情链接