yum更換源配置

今天安裝mysql5.7的時候出現了點問題,最後更換yum源解決了,把這個記錄一下mysql

yum源配置(阿里雲源)

1) 安裝wget

yum install -y wget

2) 備份/etc/yum.repos.d/CentOS-Base.repo文件

cd /etc/yum.repos.d/
mv CentOS-Base.repo CentOS-Base.repo.back

3) 下載阿里雲的Centos-6.repo文件

wget -O CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo

4) 從新加載yum

yum clean all
yum makecache
相關文章
相關標籤/搜索