在RHEL/CentOS version 7 or later system上,GRUB bootloader可以让恢复root密码变得轻松。操作步骤进入到服务器的console;重新启动服务器;进入到GRUB Bootloader界面,选择你要进入的kernel,然后按e进入;