CentOS starts 6 TTY by default. in the console, you can use the Alt + [F1 & mdash; F6] key to switch between different terminals, using SSH virtual terminal to manage remote servers is not available, which can reduce the number of TTY started to reduce system resource usage. CentOS5 modify the description of the configuration file to prohibit start of TTY: 123456ca
CentOS starts 6 TTY by default, with Alt + [F1-F6] keys available in the console switching between different terminals, these are not available to manage remote servers via SSH virtual terminal, reduce the number of TTY started to reduce system resource usage.
CentOS5 modify the description of the configuration file to prohibit start of TTY:
123456 |
cat /etc/inittab#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 |
Modify the number of TTY started in CentOS6:
123 |
Sed-I's/\/dev \/tty \ [1-6 \] // dev \/tty \ [1-1 \]/g'/etc/init/start-ttys.conf sed- i's/\/dev \/tty \ [1-6 \]/\/dev \/tty \ [1-1 \]/g'/etc/sysconfig/init # Change to start 1 TTY |
Close the specified terminal:
1 |
initctl stop tty TTY=/dev/ttyn |
Kill a specified end user: