更换CentOS 7 的下载源为阿里云
来源:互联网 发布:mysql如何导出数据库 编辑:程序博客网 时间:2024/05/21 07:47
更换 CentOS 7 的下载源为阿里云
标签: centos阿里云yum
1、备份
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
2、下载新的CentOS-Base.repo 到/etc/yum.repos.d/
CentOS 5
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-5.repo
CentOS 6
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo
CentOS 7
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
3、之后运行yum makecache生成缓存
http://mirrors.aliyun.com/help/centos 0 0
- 更换 CentOS 7 的下载源为阿里云
- 更换CentOS 7 的下载源为阿里云
- 更换 CentOS 7 的下载源为阿里云
- 更换 CentOS 7 的下载源为阿里云
- 更换CentOS的下载源为阿里源
- CentOS 7 更换阿里云的源
- Centos的yum源更换为国内的阿里云
- Centos的yum源更换为阿里云源
- Centos的yum源更换为阿里云源
- 将Centos的yum源更换为阿里云源
- 将Centos的yum源更换为阿里云
- 为CentOS更换阿里云的yum源
- Centos更换为阿里源
- 更换CentOS7的下载源为阿里云
- 更换CentOS源为阿里云国内源
- centos更换默认yum源为阿里云
- CentOS系统更换软件安装源 为阿里云
- CentOS 更换阿里云源
- 《剑指offer》-04重建二叉树
- swift —— as 、 as! 、as?的区别
- (8)LR翻页脚本并在每页实现业务操作
- git ssh
- Xcode快捷键
- 更换CentOS 7 的下载源为阿里云
- Spring bean
- Android 、Java 验证二代身份证号码是否正确
- Merge Intervals
- Elasticsearch java API (13)Search API 使用聚合
- 数据不再遥远——如何构建企业级的数据分析平台
- SSH原理与运用(一):远程登录
- 关于nginx配置成功后,无法访问的问题
- iOS应用在后台长久运行