|
原来是在:/etc/inittab 里直接修改,但同在 这个文件里没有这些TTY的内容了,哪去了?
其它只需要2个TTY控制台就够用了。
[hades@Fedora ~]$ more /etc/inittab
# inittab is only used by upstart for the default runlevel.
#
# ADDING OTHER CONFIGURATION HERE WILL HAVE NO EFFECT ON YOUR SYSTEM.
#
# System initialization is started by /etc/event.d/rcS
#
# Individual runlevels are started by /etc/event.d/rc[0-6]
#
# Ctrl-Alt-Delete is handled by /etc/event.d/control-alt-delete
#
# Terminal gettys (tty[1-6]) are handled by /etc/event.d/tty[1-6] and
# /etc/event.d/serial
#
# For information on how to write upstart event handlers, or how
# upstart works, see init(8), initctl(8), and events(5).
#
# Default runlevel. The runlevels used are:
# 0 - halt (Do NOT set initdefault to this)
# 1 - Single user mode
# 2 - Multiuser, without NFS (The same as 3, if you do not have networking)
# 3 - Full multiuser mode
# 4 - unused
# 5 - X11
# 6 - reboot (Do NOT set initdefault to this)
#
id:5:initdefault:
禁用gettys
打开 vi /etc/event.d/tty1-6,把所有以 start 开头的行,用 # 注释掉。
我只保留了1-2,3-6全部关闭了。
这招是从ubuntu 提速的帖子里找到,只适用 FEDOAR 10 |
|