/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
/etc/rc.d/init.d/httpd start #起動APACHE
/etc/rc.d/init.d/vsftpd start #起動FTP
=================================================
by James Lin
全站熱搜
留言列表