linux 重要目录之rc.local
1、/etc/rc.local
用于存放开机自启动程序命令的文件(chkconfig 常用来管理yum/rpm安装的程序的服务的开机自启动)。开机时会把/etc/rc.local里的内容执行一遍。
[root@old ~]# cat /etc/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
msconfig:查看自启动的程序