超简单将Centos的yum源更换为国内的阿里云源

2021-04-12 3592阅读

温馨提示:这篇文章已超过1109天没有更新,请注意相关的内容是否还可用!

安装宝塔时出现这个

超简单将Centos的yum源更换为国内的阿里云源  第1张

源挂壁了 还个源即可 

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

安装宝塔命令

yum install -y wget && wget -O install.sh http://download.bt.cn/install/install_6.0.sh && sh install.sh 1d36c0ba