Home >Operation and Maintenance >CentOS >How to enter single user mode in centos7

How to enter single user mode in centos7

王林
王林Original
2020-04-02 10:32:494233browse

How to enter single user mode in centos7

First we enter the boot interface, press e to select

How to enter single user mode in centos7

Then find the line marked with the red line in the picture, at the end of the line Add init=/bin/sh

How to enter single user mode in centos7

Hold down Ctrl x and execute to enter single-user mode

How to enter single user mode in centos7

As shown in the figure As shown, 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

Execute exec /sbin/init to exit single-user mode.

Recommended related tutorials: centos tutorial

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