CentOS 6.X Linux System By default is to open 6 consoles, respectively, can be accessed by ALT+F1 to Alt+f6, 6 consoles are hosted in memory by default, and can be viewed with ps-aux.
Usually we keep 2 console on it, if it is a VPS, they can not physically log in to the terminal, you may ban all.
CentOS 6.0 start TTY Configuration changed from/etc/inittab to/etc/init/start-ttys.conf, execute the following command to change the default 6 TTY to 2:
TTY found [1-6] changed to TTY [1-2]
Open/etc/init/start-ttys.conf first.
TTY found [1-6] changed to TTY [1-2]
In the Open/etc/sysconfig/init
Found it
ACTIVE_CONSOLES=/DEV/TTY[1-6]
Modified to:
Active_consoles=/dev/tty[1-2]
If you want to temporarily stop the TTY terminal, you can use the following:
Initctl Stop TTY Tty=/dev/tty6 [stop Tty6].
Report:
CentOS5 Modify Profile Comment The TTY that is prohibited from starting can be:
Nano/etc/inittab
......
# Run Gettys in standard runlevels
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