版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/hzzhengyx/article/details/84205176
1. 操作系统
虚拟机: parallels或者vmware fusion
下载地址:https://pan.baidu.com/s/1JxVDhY0Ei9T2suDeLNmFug
Linux : centos6.8 64bit
下载地址: http://archive.kernel.org/centos-vault/6.8/isos/x86_64/CentOS-6.8-x86_64-bin-DVD1.iso
2. centos源配置
阿里巴巴源配置官网:https://opsx.alibaba.com/mirror
源配置步骤参考centos帮助文档
2.1.备份
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
2.2. 下载新的CentOS-Base.repo 到/etc/yum.repos.d/
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo
2.3. 之后运行yum makecache生成缓存