Home >Operation and Maintenance >CentOS >What should I do if centos7 cannot boot?

What should I do if centos7 cannot boot?

王林
王林Original
2020-04-03 11:03:504856browse

What should I do if centos7 cannot boot?

Screenshot of the problem:

What should I do if centos7 cannot boot?

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;

What should I do if centos7 cannot boot?

Locate ro (linux16)

What should I do if centos7 cannot boot?

Change ro to "rw init=/sysroot/bin/sh". After completion, press "Ctrl x" to exit the current state

What should I do if centos7 cannot boot?

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn