使用者自订开机启动程序Linux认证考试
文章作者 100test 发表时间 2010:02:10 19:01:19
来源 100Test.Com百考试题网
我想要在开机时就进行的工作时,直接将他写入 /etc/rc.d/rc.local , 那么该工作就会在开机的时候自动被载入喔!而不必等我们登入系统去启动呢!
[root@www ~]# vim /etc/rc.d/rc.local
#!/bin/bash
# /usr/local/smart/upsd
touch /var/lock/subsys/local
/etc/rc.d/iptables.rule
chmod 600 /var/run/utmp
# reply from user to client automatically
/usr/bin/vacation -I -r -t1 lanyee
开机过程会用到的主要设定档
关于模组: /etc/modprobe.conf
[root@www ~]# cat /etc/modprobe.conf
alias eth0 8139too