dinghailong128

RHEL/CentOS 6

把其中的id:3:initdefault中的3改为5,这样以后系统启动后将直接进入文本模式。
以下是配置引导进入图形模式的etc/inittab文件的部分内容:

  #Default runlevel.The runlevels used by RHS are:
  # 0-halt(Do NOT set initdefault to this)
  # 1 -Single user mode
  # 2-Multiuser,without NFS(The same as 3,if you do not have networking)
  # 3-Full multiuser mode
  # 4-unused
  # 5-X11 //选择此项,系统在登录时将进入图形化登录界面
  # 6-reboot(Do NOT set initdefault to this)

id:3:initdefault: //此处若改为3,系统将被引导进入文本登录提示符界

RHEL/CentOS 7

# root 权限
systemctl get-default    # 获取当前模式

systemctl set-default graphical.target    # 设置开机为图形界面

systemctl set-default multi-user.target    # 设置开机为字符界面

 

分类:

技术点:

相关文章:

  • 2021-11-14
  • 2022-12-23
  • 2022-12-23
  • 2021-11-24
  • 2021-05-16
  • 2022-12-23
  • 2021-08-02
猜你喜欢
  • 2021-11-14
  • 2021-11-24
  • 2021-11-14
  • 2021-11-24
  • 2021-11-14
  • 2021-12-31
相关资源
相似解决方案