Home>Article>Operation and Maintenance> How to enter single user mode in centos

How to enter single user mode in centos

尚
Original
2020-03-31 11:27:11 10723browse

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".

How to enter single user mode in centos

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!

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