将yum的目标服务器更改为中国大陆服务器镜像
来源:互联网 发布:windows如何安装redis 编辑:程序博客网 时间:2024/06/08 11:57
将yum的目标服务器更改为中国大陆服务器镜像
修改/etc/yum.repos.d/CentOS-Base.repo,将镜象站点地址改为在中国的镜象站点地址。不然我们通过yum安装软件速度会比较慢。
以下的URL地址我都验证过了在当前完全可以下载,而且速度挺快.
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.bak
vi /etc/yum.repos.d/CentOS-Base.repo
以下的URL地址我都验证过了在当前完全可以下载,而且速度挺快.
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.bak
vi /etc/yum.repos.d/CentOS-Base.repo
# CentOS-Base.repo## This file uses a new mirrorlist system developed by Lance Davis for CentOS.# The mirror system uses the connecting IP address of the client and the# update status of each mirror to pick mirrors that are updated to and# geographically close to the client. You should use this for CentOS updates# unless you are manually picking other mirrors.## If the mirrorlist= does not work for you, as a fall back you can try the # remarked out baseurl= line instead.##[base]name=CentOS-$releasever - Basebaseurl=http://mirror.be10.com/centos/$releasever/os/$basearch/http://ftp.iasi.roedu.net/mirrors/centos.org/$releasever/os/$basearch/http://ftp.ncnu.edu.tw/Linux/CentOS/$releasever/os/$basearch/http://ftp.hostrino.com/pub/centos/gpgcheck=1gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4#released updates[update]name=CentOS-$releasever - Updatesbaseurl=http://mirror.be10.com/centos/$releasever/os/$basearch/http://ftp.iasi.roedu.net/mirrors/centos.org/$releasever/os/$basearch/http://ftp.ncnu.edu.tw/Linux/CentOS/$releasever/os/$basearch/http://ftp.hostrino.com/pub/centos/gpgcheck=1gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4#packages used/produced in the build but not released[addons]name=CentOS-$releasever - Addonsbaseurl=http://mirror.be10.com/centos/$releasever/os/$basearch/http://ftp.iasi.roedu.net/mirrors/centos.org/$releasever/os/$basearch/http://ftp.ncnu.edu.tw/Linux/CentOS/$releasever/os/$basearch/http://ftp.hostrino.com/pub/centos/gpgcheck=1gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4#additional packages that may be useful[extras]name=CentOS-$releasever - Extrasbaseurl=http://mirror.be10.com/centos/$releasever/os/$basearch/http://ftp.iasi.roedu.net/mirrors/centos.org/$releasever/os/$basearch/http://ftp.ncnu.edu.tw/Linux/CentOS/$releasever/os/$basearch/http://ftp.hostrino.com/pub/centos/gpgcheck=1gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4#additional packages that extend functionality of existing packages[centosplus]name=CentOS-$releasever - Plusbaseurl=http://mirror.centos.org/centos/$releasever/centosplus/$basearch/gpgcheck=1enabled=0gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4#contrib - packages by Centos Users[contrib]name=CentOS-$releasever - Contribbaseurl=http://mirror.centos.org/centos/$releasever/contrib/$basearch/gpgcheck=1enabled=0gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4
原文地址:
- 将yum的目标服务器更改为中国大陆服务器镜像
- 将yum的目标服务器更改为中国大陆服务器镜像
- 修改yum的镜像服务器为阿里云
- Centos yum源服务器国内镜像
- 将web服务器端口更改为80端口
- 将Centos7的yum配置为阿里云的镜像
- 将Centos7的yum配置为阿里云的镜像(完美解决yum下载太慢的问题)
- 无法将 ALTER DATABASE 命令发送到远程服务器实例 'TCP://Machine:5022'。数据库镜像配置未更改
- 镜像服务器的搭建
- 更改centos yum 成中国镜像加快yum速度
- FreeBSD 6.2 中国大陆和台湾的官方镜像更新
- yum 以vsftp为服务器的安装方法
- 将本地repo镜像推送到远程gerrit服务器
- SVN 服务器镜像
- MYSQL镜像服务器
- 服务器镜像本地
- centos5.1修改yum的源为国内镜像
- centos 设置yum为网易的镜像
- 承诺升级理论
- linux乱码解决
- 伪技术人员的成长历程之20-在Windows下的OpenVPN
- UpdateProgress控件显示问题
- Nano-X的FASTJPEG的问题
- 将yum的目标服务器更改为中国大陆服务器镜像
- nios II 高2G地址与低2G的关系
- Stay with my heart -Sophie Zelmani
- Asp.net程序中生成Excel报表
- 绝美情诗排行榜
- 关于dropdownlist的问题
- javaScript控制選中單選按鈕`
- FlashFXP 3.8 (3.7.2 Build 1270) Beta Incl. Keygen-Lz0
- 深入浅出WPF(9)——数据的绿色通道,Binding(下)