Steps to adjust the default number of TTY terminals in CentOS6

Source: Internet
Author: User
Tags centos

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.