1.挂入光盘进到boot系统选择cd光盘按F10保存退出,有些需要按"fn + f10"组合键使用。

2..选择Troubleshooting(故障排查)。

3.选择Rescue CentOS system(拯救centos系统)。

-
"cd /mnt/install/repo/Packages/ " # 切换当前工作目录
-
"rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7 " # 导入软件包签名验证所需的 GPG 公钥
-
"rpm -ivh bash* --root=/mnt/sysimage --force --nodeps "# 指定根目录下安装 RPM 软件包
-
"reboot"重启系统
