- 在/etc/profile文件中加入下面内容
done
unset i
unset -f pathmunge
export http_proxy=http://proxy-prc.intel.com:911
export ftp_proxy=http://proxy-prc.intel.com:911
export HTTP_proxy=http://proxy-prc.intel.com:911
export FTP_proxy=http://proxy-prc.intel.com:911
拷贝yum源文件到/etc/yum.repos.d/路径下
•阿里源 https://mirrors.aliyun.com/centos/7.3.1611/os/x86_64/
•清华大学https://mirror.tuna.tsinghua.edu.cn/centos/7.3.1611/os/x86_64/
•网易源http://mirrors.163.com/centos/7.3.1611/os/x86_64/
•浙江大学http://mirrors.zju.edu.cn/centos/7.3.1611/os/x86_64/source profile
- command: yum clean all
yum make makecache