Solution to black screen after CentOS7 yum update y update

solution one

Can ssh access

Because the system kernel was updated during update, which caused driver problems, so the screen will be black.

Change the configuration of yum to solve it:

vi /etc/yum.conf

#增加:

exclude=centos-release*

exclude=kernel*

If the above problems are still not resolved, you can try the following methods

other problems

How to Disable SELinux Permanently
To disable SELinux permanently, use a text editor to open the /etc/sysconfig/selinux file as follows:

vi /etc/sysconfig/selinux
1
Then change the configuration SELinux=enforcing to SELinux=disabled, as shown in the figure below.

How to Disable SELinux Permanently
To disable SELinux permanently, use a text editor to open the /etc/sysconfig/selinux file as follows:

Then, save and exit the file. In order for the configuration to take effect, you need to restart the system, and then use the sestatus command to check the status of SELinux, as follows:

sestatus

 

 After setting, restart the system

Guess you like

Origin blog.csdn.net/Angel_asp/article/details/130624161