免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 713 | 回复: 0
打印 上一主题 下一主题

/etc/inittab [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-04-02 10:02 |只看该作者 |倒序浏览
经常修改/etc/initab文件,其实也就是修改启动的runlevel而已.其实
    1:2345:respawn:/sbin/mingetty tty1
    2:2345:respawn:/sbin/mingetty tty2
    3:2345:respawn:/sbin/mingetty tty3
    4:2345:respawn:/sbin/mingetty tty4
    5:2345:respawn:/sbin/mingetty tty5
    6:2345:respawn:/sbin/mingetty tty6
我们不需要这么多的terminal,可以注释掉一些我把tty4到6给注释了,可以提高点性能^_^.
/sbin/telinit is linked to /sbin/init.  It takes a one-character argument and signals init  to
       perform the appropriate action.  The following arguments serve as directives to telinit:
       0,1,2,3,4,5 or 6
              tell init to switch to the specified run level.
       a,b,c  tell init to process only those /etc/inittab file entries having runlevel a,b or c.
       Q or q tell init to re-examine the /etc/inittab file.
       S or s tell init to switch to single user mode.
       U or u tell  init to re-execute itself (preserving the state). No re-examining of /etc/inittab
              file happens. Run level should be one of Ss12345, otherwise request would  be  silently
              ignored.
觉得init q有点小意思,就记载这里了,也算点小小的心得体会把
               
               
               

本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u2/76292/showart_1888301.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP