Centos 7 sets the default startup command window

Source: Internet
Author: User

Recently, I tried to change centos 7x64. The first problem is that the command line is started by default. The original settings are as follows:

Open the/etc/inittab file: sudo Vim inittab
Then
: ID: 5: initdefault: changed to 3. The command line interface will be started by default after restart.
But in centos 7, the/etc/inittab file is like this.

I used my primary school English level to check it. Now, to set the default startup mode, you only need to make a soft connection to set the Startup File to/etc/systemd/system/default.tar get,

To link the file, see the first English example. The Multi user.tar get file is equivalent to the original runlevel 3 (startup command line), while graphical.tar get indicates that runlevel 5 is the startup window interface,

To start the text window by default, run the following command:

Ln-SF/lib/systemd/system/multi-user.target/etc/systemd/system/default.tar get

For Linux beginners, please do not make a picture.

 

Centos 7 sets the default startup command window

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.