Home >Operation and Maintenance >CentOS >What should I do if centos7 cannot boot?
Screenshot of the problem:
Solution:
1. Enter single-user mode
The method to enter single-user mode is as follows:
Press the keyboard casually when booting to enter the following menu; select the first item and press the e key to modify it;
Locate ro (linux16)
Change ro to "rw init=/sysroot/bin/sh". After completion, press "Ctrl x" to exit the current state
2. Execute the following commands in sequence
chroot /sysroot/ chmod +x /etc/rc.d/rc.local
3. Restart the system
reboot
Recommended tutorial:centos tutorial
The above is the detailed content of What should I do if centos7 cannot boot?. For more information, please follow other related articles on the PHP Chinese website!