CentOS 7 graphical interface opens and closes — Let the system take off

If your Centos7 system is stuck, you can turn off the graphic jiem by command to let your system take off quickly.

1. Use the systemctl get-default command to view the default mode of the current system as shown below:
Centos 7 graphical interface on and off---Let the system take off
2. Through the systemctl set-default graphical.target command, modify the default mode of the current system to the graphical interface, and view through systemctl get-default The result is as follows:
Centos 7 graphical interface on and off---let the system take off
3. Through systemctl set-default, you can set the default operating mode of the system at startup. If you want to turn on the graphical interface, you need to use the systemctl isolate graphical.target command to turn on
Centos 7 Turn on and turn off the graphical interface---let The system takes off
From the figure above, you can see that after the communication interface is turned on, the number of processes running in the system is 173.
4. Through the systemctl isolate multi-user.target command, you can close the graphical interface, leaving only the command interface
Centos 7 graphical interface on and off---Let the system take off
From the figure above, you can see that after closing the communication interface, the number of processes running on the system is 129, and the system runs more smoothly.

Thanks for your attention! ! !

Leave a Comment

Your email address will not be published.