Home >Operation and Maintenance >CentOS >How to enter single-user mode in centos 7?

How to enter single-user mode in centos 7?

coldplay.xixi
coldplay.xixiOriginal
2020-07-28 15:40:2221749browse

How to enter single-user mode in centos 7: First enter the boot interface and press e to select; then find the relevant line and add [init=/bin/sh] at the end of the line; finally press and hold [Ctrl x 】Execute to enter single-user mode.

How to enter single-user mode in centos 7?

How to enter single-user mode in centos 7:

First we enter the startup interface and press e to select

How to enter single-user mode in centos 7?

You will enter the following interface,

How to enter single-user mode in centos 7?
then find the line marked with the red line in the picture, and add init= at the end of the line /bin/sh

How to enter single-user mode in centos 7?

Hold down Ctrl x to execute, you can enter single-user mode

How to enter single-user mode in centos 7?
As shown in the figure, we can also change the password. The root password is changed by default, and the passwords of other users can also be changed passwd junjind

Executeexec /sbin/init to exit single-user mode

How to enter single-user mode in centos 7?

Recommended related tutorials: centos tutorial

The above is the detailed content of How to enter single-user mode in centos 7?. 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