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