LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 634|回复: 3

救命阿~~我不小心把/etc/inittab删了。[基本解决]

[复制链接]
发表于 2004-4-12 17:17:43 | 显示全部楼层 |阅读模式
麻烦大家贴出你的/etc/inittab ,如果你的系统是RedHat 9.0
发表于 2004-4-12 17:19:18 | 显示全部楼层
rh8的,不过跟rh9的没什么区别

  1. /home/javalee#cat /etc/inittab
  2. #
  3. # inittab       This file describes how the INIT process should set up
  4. #               the system in a certain run-level.
  5. #
  6. # Author:       Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
  7. #               Modified for RHS Linux by Marc Ewing and Donnie Barnes
  8. #

  9. # Default runlevel. The runlevels used by RHS are:
  10. #   0 - halt (Do NOT set initdefault to this)
  11. #   1 - Single user mode
  12. #   2 - Multiuser, without NFS (The same as 3, if you do not have networking)
  13. #   3 - Full multiuser mode
  14. #   4 - unused
  15. #   5 - X11
  16. #   6 - reboot (Do NOT set initdefault to this)
  17. #
  18. id:5:initdefault:

  19. # System initialization.
  20. si::sysinit:/etc/rc.d/rc.sysinit

  21. l0:0:wait:/etc/rc.d/rc 0
  22. l1:1:wait:/etc/rc.d/rc 1
  23. l2:2:wait:/etc/rc.d/rc 2
  24. l3:3:wait:/etc/rc.d/rc 3
  25. l4:4:wait:/etc/rc.d/rc 4
  26. l5:5:wait:/etc/rc.d/rc 5
  27. l6:6:wait:/etc/rc.d/rc 6

  28. # Things to run in every runlevel.
  29. ud::once:/sbin/update

  30. # Trap CTRL-ALT-DELETE
  31. ca::ctrlaltdel:/sbin/shutdown -t3 -r now

  32. # When our UPS tells us power has failed, assume we have a few minutes
  33. # of power left.  Schedule a shutdown for 2 minutes from now.
  34. # This does, of course, assume you have powerd installed and your
  35. # UPS connected and working correctly.
  36. pf::powerfail:/sbin/shutdown -f -h +2 "Power Failure; System Shutting Down"

  37. # If power was restored before the shutdown kicked in, cancel it.
  38. pr:12345:powerokwait:/sbin/shutdown -c "Power Restored; Shutdown Cancelled"


  39. # Run gettys in standard runlevels
  40. 1:2345:respawn:/sbin/mingetty tty1
  41. 2:2345:respawn:/sbin/mingetty tty2
  42. #3:2345:respawn:/sbin/mingetty tty3
  43. #4:2345:respawn:/sbin/mingetty tty4
  44. #3:2345:respawn:/sbin/mingetty tty5
  45. #6:2345:respawn:/sbin/mingetty tty6

  46. # Run xdm in runlevel 5
  47. # xdm is now a separate service
  48. x:5:respawn:/etc/X11/prefdm -nodaemon
  49. /home/javalee#
复制代码
 楼主| 发表于 2004-4-12 17:30:34 | 显示全部楼层
谢谢斑竹!!和Redhat 9.0很相似。
发表于 2004-4-12 18:49:59 | 显示全部楼层
修改此类配置文件时,一定要做备份
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表