为了便于平台上软件的安装,配置安装网络yum源和epel源。
首先需要服务器可以连接互联网,使用阿里云的公共镜像
下载网络yum源
1.确定可以连接互联网
2.备份
3.下载新的 CentOS-Base.repo 到 /etc/yum.repos.d/
wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-7.repo
4. 运行 yum makecache 生成缓存
参考文档: