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:
First we enter the startup interface and press e to select
You will enter the following interface,
then find the line marked with the red line in the picture, and add init= at the end of the line /bin/sh
Hold down Ctrl x
to execute, you can enter single-user mode
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
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!