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
: 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

E-Commerce Solutions

Leverage the same tools powering the Alibaba Ecosystem

Learn more >

Apsara Conference 2019

The Rise of Data Intelligence, September 25th - 27th, Hangzhou, China

Learn more >

Alibaba Cloud Free Trial

Learn and experience the power of Alibaba Cloud with a free trial worth $300-1200 USD

Learn more >

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.