Centos7 when entering a single user and 6.x made a lot of changes, let's look at how to enter a single user
1, restart the server, select the kernel interface using the up and down arrows to move
2. Select the kernel and press "E"
650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M01/8C/9F/wKioL1hy_C2CF1iuAABfZzkwKX0324.png-wh_500x0-wm_3 -wmp_4-s_333832968.png "style=" float:left; "title=" C1.png "alt=" Wkiol1hy_c2cf1iuaabfzzkwkx0324.png-wh_50 "/>
3, find the following line
650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M02/8C/A3/wKiom1hy_Gfz1HCXAACLVrnpqjI770.png-wh_500x0-wm_3 -wmp_4-s_3071467786.png "title=" C2.png "alt=" Wkiom1hy_gfz1hcxaaclvrnpqji770.png-wh_50 "/>
4. Modification
Here to remove rhgb quiet, such as
650) this.width=650; "Src=" Http://s5.51cto.com/wyfs02/M02/8C/9F/wKioL1hy_JSwBWX3AAAPnN_u_Dk267.png-wh_500x0-wm_3 -wmp_4-s_2421980247.png "title=" C3.png "alt=" Wkiol1hy_jswbwx3aaapnn_u_dk267.png-wh_50 "/>
5, the use of "CTRL + X" To restart the server is OK, restart will be entered into a single user
6. Exit Single user command
Exec/sbin/init
There is another way on the internet, I have not used, if any child shoes operation, please leave a message!
1, start the time, in the Start screen, the corresponding startup item, the kernel name on the "E"; 2, after entering, find linux16 beginning place, press "End" key to the last, enter Rd.break, press ctrl+x enter; 3, enter the command mount after entering, find the root for/sysroot /, and can not write, only ro=readonly permission, 4, Mount-o remount,rw/sysroot/, re-mount, after mount, found that r,w permission; 5, chroot/sysroot/change the root; (1) Echo Redhat |passwd–stdin root to change the root password to Redhat, or input passwd, interactive modification; (2) There is a CP first, and then modify the/etc/shadow file 6, Touch/.autorelabel This is for SELinux to take effect 7, Ctrl+d exit 8, and then reboot
This article from the "Circle of a Bird" blog, declined to reprint!
CENTOS7 Single-User mode entry