Linux启动级别及设置


# 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) 多用户模式,但不支持NFS

# 3 - Full multiuser mode 完全的多用户模式
# 4 - unused 没用到
# 5 - X11 图形界面
# 6 - reboot (Do NOT set initdefault to this) 重启(不要设置为默认)

RedHat中要改变启动级别,只要修改/etc/inittab。

Ubuntu有点不一样,网上的方法也很多,试过其中一种。

You need to open the /etc/default/grub file, locate the following line:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

and change it to:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash text"

update-grub

即编辑/etc/default/grub文件,将GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"改为GRUB_CMDLINE_LINUX_DEFAULT="quiet splash text",然后更新一下grub。

相关内容