修改centos源为阿里云源
来源:互联网 发布:js原型链继承面试题 编辑:程序博客网 时间:2024/05/21 04:24
1.备份源文件
sudo mkdir /opt/centos-yum.bak sudo mv /etc/yum.repos.d/* /opt/centos-yum.bak/
2.查看centos 版本号
cat /etc/redhat-release
3.在阿里云镜像库找到符合自己centos版本的镜像源(以下操作都是在sudo 下进行的)
CentOS 5wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-5.repo或者curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-5.repoCentOS 6wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo或者curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repoCentOS 7wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo或者curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
4.
yum clean all yum makecache
阅读全文
0 0
- 修改centos源为阿里云源
- 修改CentOS源为国内阿里云
- CentOs 替换yum源为阿里云
- Centos修改镜像为国内的阿里云源或者163源等国内源
- Centos修改镜像为国内的阿里云源或者163源等国内源
- Centos修改镜像为国内的阿里云源或者163源等国内源
- Centos修改镜像为国内的阿里云源或者163源等国内源
- Centos修改镜像为国内的阿里云源或者163源等国内源
- Centos更换为阿里源
- ubuntu修改为阿里源
- Centos的yum源更换为阿里云源
- 设置centos的YUM源为国内阿里云源
- Centos的yum源更换为阿里云源
- Centos下替换yum源为阿里云源
- 将Centos的yum源更换为阿里云源
- 更换CentOS源为阿里云国内源
- Centos下替换yum源为阿里云源
- Centos下替换yum源为阿里云源
- react 创建饼状图
- html学习笔记
- ZooKeeper连接KeeperErrorCode = ConnectionLoss for /eclipse问题,暂无解决办法
- git 命令常用总结
- 单元测试编写
- 修改centos源为阿里云源
- 安卓逆向DDMS不显示待附加进程解决思路
- LeetCode(7) Given a 32-bit signed integer, reverse digits of an integer解题报告
- android图片裁剪拼接实现(一):Matrix基本使用
- git clone 异常现象
- 简单排序算法之插入排序、选择排序和冒泡排序
- 点击qq图标,弹出与其对话聊天的窗口
- seo技术也可以用于淘宝站内搜索
- 通用mapper 根据条件修改、查询 Example的实例函数及例子