在linux中,包括本文介绍的centos系统中,tty系统默认是给出7个,前六个是terminal,一个用于X。
在centos5.x中减少tty数量,通过修改/etc/inittab来实现。
[root@localhost ~]# cat /etc/redhat-release  
CentOS release 5.5 (Final) 
[root@localhost ~]# vi /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
本文出处参考:http://www.jbxue.com/LINUXjishu/11676.html

相关文章:

  • 2021-06-08
  • 2021-04-09
  • 2022-12-23
  • 2021-11-28
  • 2022-01-24
  • 2021-10-05
  • 2022-12-23
猜你喜欢
  • 2021-06-10
  • 2021-07-27
  • 2021-11-18
  • 2021-11-16
  • 2021-08-26
  • 2021-08-01
  • 2021-06-29
相关资源
相似解决方案