為了讓我們使用我們插件下載更快,不受資源的網(wǎng)絡(luò)地址的影響,我們需要將系統(tǒng)的yum源更換掉,這個(gè)更換的是阿里的源。
廢話(huà)不多說(shuō),直接上命令:
cd /etc/yum.repos.d/
mv CentOS-Base.repo CentOS-Base.repo.back
wget -O CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
yum makecache
注意:wget -0:O是大寫(xiě)的字母。