CentOS更换yum mirror
2016-01-26 10:47
375 查看
在 http://mirror-status.centos.org/ 找一个速度快的源(比如我选择mirror.vastspace.net)
备份配置:
更改配置(vi命令):
完成。
备份配置:
$ ls /etc/yum.repos.d/ CentOS-Base.repo CentOS-Debuginfo.repo CentOS-fasttrack.repo CentOS-Media.repo CentOS-Vault.repo $ sudo cp /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.bak $ sudo vi /etc/yum.repos.d/CentOS-Base.repo
更改配置(vi命令):
:%s/^#base/base/g :%s/^mirror/#mirror/g :%s/mirror.centos.org/mirror.vastspace.net/g :wq
完成。
相关文章推荐
- Centos6 编译安装Python
- 硬盘安装CentOS 6.2以及添加GRUB启动菜单
- CentOS 6.2实战部署Nginx+MySQL+PHP
- CentOS 7系统配置上的变化解析
- centos下删除用yum安装的软件
- CentOS下DB2数据库安装过程详解
- CentOS 6.3下编译安装Ruby 2.0笔记
- 在Centos 5.5 上编译安装mysql 5.5.9
- 在阿里云的CentOS环境中安装配置MySQL的教程
- 利用yum安装Redis的方法详解
- CentOS 6.5源码安装Erlang教程
- 在CenOS系统下安装和配置Redis数据库的教程
- centos 5.6 升级php到5.3的方法
- CentOS mysql安装系统方法
- centos下安装mysql服务器的方法
- CentOS 5.1 4.6最新官方下载地址列表
- Centos搭建GTK+Codeblock完整版