Centos7 change default startup mode

Source: Internet
Author: User

Centos7 change default startup mode

Today, a graphic interface for centos7 was installed, but it was found that the default startup mode cannot be changed to the command line mode in the previous method.

Previous method: Modify id: 3: initdefault in the/etc/inittab file, change 3 to 5, and restart the system;

In some research, the modification method of centos7 has changed, and the record is as follows, for later reference only:

1. view the/etc/inittab File

2. The file description shows that centos has only two startup modes:

Multi - User.tar get: analogoustorunlevel 3 # Command Line Mode Graphical.tar get: analogoustorunlevel 5 # Graphic mode

3. Run the systemctl get-default command to obtain the current mode:

4. Run the systemctl set-default multi-user.target command to modify the Startup Mode:

5. reboot verification results

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.