系统内存耗完,关电源重启机器,服务自启动:开机自启动

http://www.jb51.net/LINUXjishu/66410.html

 6个级别

chkconfig

0 lrwxrwxrwx. 1 root root 7 Nov 8 2016 rc -> rc.d/rc
0 lrwxrwxrwx. 1 root root 10 Nov 8 2016 rc0.d -> rc.d/rc0.d
0 lrwxrwxrwx. 1 root root 10 Nov 8 2016 rc1.d -> rc.d/rc1.d
0 lrwxrwxrwx. 1 root root 10 Nov 8 2016 rc2.d -> rc.d/rc2.d
0 lrwxrwxrwx. 1 root root 10 Nov 8 2016 rc3.d -> rc.d/rc3.d
0 lrwxrwxrwx. 1 root root 10 Nov 8 2016 rc4.d -> rc.d/rc4.d
0 lrwxrwxrwx. 1 root root 10 Nov 8 2016 rc5.d -> rc.d/rc5.d
0 lrwxrwxrwx. 1 root root 10 Nov 8 2016 rc6.d -> rc.d/rc6.d
4 drwxr-xr-x. 10 root root 4096 Sep 13 17:08 rc.d
0 lrwxrwxrwx. 1 root root 13 Nov 8 2016 rc.local -> rc.d/rc.local
0 lrwxrwxrwx. 1 root root 15 Nov 8 2016 rc.sysinit -> rc.d/rc.sysinit

 

相关知识点

/etc/rc.local /etc/rc.sysinit /etc/inittab /etc/profile

 

 

随任何用户开机启动,而非单个用户开机启动:

多种解决方案:

0-设为级别3

1-写入/etc/rc.local 

 

 

 

 

http://www.cnblogs.com/gbyukg/archive/2011/10/10/2205424.html

 

posted @ 2017-12-11 17:38  papering  阅读(202)  评论(0编辑  收藏  举报