CentOS 7 Operations Management Note (1)----Set the default startup mode to GUI mode or command line mode

Source: Internet
Author: User

Yesterday in the virtual machine installed CentOS 7 o'clock selected Gnome mode installation, boot default into GUI mode. Search online to modify the default command-line mode method, see said to modify the/etc/inittab file, at the lowest next line to add

ID:3

But using

Cat /etc/inittab

command to view the Inittab file, you can see the following:

The contents of the first red box indicate that Inittab is no longer in use.

The second red box shows two boot modes: Multi-user.target and Graphical.target modes, named command line multiuser mode and graphical interface mode.

The third red box shows how to change the default startup mode: Systemctl Set-default target.target, where Target.target is Multi-user.target or graphical.target.

So let's open the command line and enter it at the command line:

Systemctl Set-default Multi-user.target

This way, the default startup mode is multi-user command-line mode.

In this mode, it is convenient to switch between six users by pressing ALT+[F1~F6].

CentOS 7 Operations Management Note (1)----Set the default startup mode to GUI mode or command line mode

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.