第一种

第一步:
在系统登录的界面上选择“内核”;按“e”
第二步:
在utf-8后加“rd.break console=tty0”
第三步:
ctrl+x
第四步:
switch_root#
mount -o remount,rw /sysroot
chroot /sysroot
sh_4.2#
passwd ro
touch /.autorelabel
exit
switch_root#
reboot
第二种
第一步:
在系统登录的界面上选择“内核”;按“e”
第二步:
在utf-8后加“init=/bin/sh”
第三步:
ctrl+x
第四步:
switch_root#
mount -o remount,rw /
sh_4.2#
passwd
vim /etc/selinux/config 修改成disabled
exit

        switch_root# 
                  reboot