小插曲
安装webrtc服务时,yum源被我弄出了问题,导致yum源无法使用.不知道怎么排查,只要清掉重新下载 把/etc/yum.repos.d/下面所有的源给删除掉了,重新下载就好了,这里我选择国内阿里云的镜像
bash
# CentOS 5
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-5.repo
# CentOS 6
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo
# CentOS 7
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
# CentOS 7 官方镜像
rpm -Uvh --force http://mirror.centos.org/centos-7/7/os/x86_64/Packages/centos-release-7-4.1708.el7.centos.x86_64.rpm
执行命令,重新生成cache
bash
yum clean all
yum makecache