腾讯云mirrors.tencentyun.com镜像源挂了更换成163源

腾讯云服务器安装宝塔直接报错404,仔细查看看发现mirrors.tencentyun.com应该挂了!

图片[1]-腾讯云mirrors.tencentyun.com镜像源挂了更换成163源-吾爱侠客

临时切换源教程如下

开始输入:

cd /etc/yum.repos.d
mv CentOS-Base.repo CentOS-Base.repo.backup
wget http://mirrors.163.com/.help/CentOS6-Base-163.repo
mv CentOS6-Base-163.repo CentOS-Base.repo
yum clean all
yum makecache    //将服务器上的软件包信息缓存到本地,以提高搜索安装软件的速度
yum update

然后进入进入 /etc/yum.repos.d 这个文件夹,找到 CentOS-Epel.repo 这个文件,将

gpgcheck=1
gpgkey=http://mirrors.tencetyun.com/epel/RPM-GPG-KEY-EPEL-7
enabled=1
baseurl=http://mirrors.tencentyun.com/epel/$releasever/$basearch/

换成

gpgcheck=1
gpgkey=http://mirrors.163.com/epel/RPM-GPG-KEY-EPEL-7
enabled=0
baseurl=http://mirrors.163.com/epel/$releasever/$basearch/

最后大功告成!

© 版权声明
THE END
喜欢就支持一下吧
点赞167赞赏 分享
评论 抢沙发

请登录后发表评论

    请登录后查看评论内容