Home>Article>Operation and Maintenance> How to enter single user mode in centos
centos 7 enters single-user mode:
Modify grub2 boot:
Press "e" at the normal system entrance (there is a prompt), it will Enter the edit mode, search for the line ro, and change ro to rw starting with linux16
(change read-only to writable)
Delete rhgb quiet
Add init=/bin/sh
Press ctrl X to start the system
Change root password
#passwd Just change the password
centos 6 Enter single-user mode:
centos 6 Entering single-user mode is relatively simple. After restarting, press any character on the startup interface to enter the boot menu "a"
and then enter S, s, Single, any one of 1 can enter single user mode, the input here is "single".
Recommended tutorial:centos tutorial
The above is the detailed content of How to enter single user mode in centos. For more information, please follow other related articles on the PHP Chinese website!