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