找到ACTIVE_CONSOLES行, 修改为自己想要的数字即可
#ACTIVE_CONSOLES=”/dev/tty[1-6]” ACTIVE_CONSOLES=”/dev/tty[1-2]“
修改/etc/init/tty*.conf相应文件 (tty5 tty6) 全注释掉
# tty5 – getty # # This service maintains a getty on tty5 from the point the system is # started until it is shut down again. #start on runlevel [23] #stop on runlevel [!23] #respawn #exec /sbin/getty -8 38400 tty5