"CentOS 7.1" boot operation mode run level

Source: Internet
Author: User

In most Linux distributions, there are typically 8 runlevel

Runlevel System State
0 Halt the system
1 Single user mode
2 Basic Multi user mode
3 Multi User mode
5 Multi User mode with GUI
6 Reboot The system
s, s single user mode


Can be viewed in file/etc/inittab

[Email protected] ~]# Cat/etc/inittab

-bash:cat/etc/inittab: No file or directory

[Email protected] ~]# Cat/etc/inittab

# Inittab is no longer used when using SYSTEMD.

#

# ADDING CONFIGURATION here'll has NO EFFECT on YOUR SYSTEM.

#

# Ctrl-alt-delete is handled By/usr/lib/systemd/system/ctrl-alt-del.target

#

# SYSTEMD uses ' targets ' instead of runlevels. By default, there is both main targets:

#

# Multi-user.target:analogous to RunLevel 3

# graphical.target:analogous to RunLevel 5

#

# to view current default target, run:

# Systemctl Get-default

#

# to set a default target, run:

# Systemctl Set-default Target.target

#


Get-default

[Email protected] ~]# Systemctl Get-default

Graphical.target


Set-default

[Email protected] ~]# Systemctl set-default multi-user.target

RM '/etc/systemd/system/default.target '

Ln-s '/usr/lib/systemd/system/multi-user.target '/etc/systemd/system/default.target '

[Email protected] ~]# Systemctl Get-default

Multi-user.target

[Email protected] ~]#





"CentOS 7.1" boot operation mode run level

Related Article

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.