1、1、启动的时候,在启动界面,相应启动项,内核名称上按“e”;
2、进入后,找到linux16开头的地方,按“end”键到最后,输入rd.break,按ctrl+x进入;
3、 mount -o remount,rw /sysroot
4、 chroot /sysroot
5、 passwd修改密码
6、touch /.autorelabel
7、grep SELINUX /etc/selinux/config
8、sed -i 's#SELINUX=enforcing#SELINUX=disable#' /etc/selinux/config
9、exit;exit
转载于:https://blog.51cto.com/redmaple34/2089352