美文网首页
07. centos设置国内yum源

07. centos设置国内yum源

作者: Lv_0 | 来源:发表于2017-12-28 23:50 被阅读0次
  • 国内镜像站点

    163:mirrors.163.com
    阿里:mirrors.aliyun.com

  • 修改默认yum源

  1. 备份系统自带yum源文件:/etc/yum.repos.d/CentOS-Base.repo
image.png
  1. 下载ailiyun/163的yum源配置文件到/etc/yum.repos.d/
    yum -y install wget
    aliyun:
    wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
    163:wget http://mirrors.163.com/.help/CentOS7-Base-163.repo
image.png
  1. 刷缓存yum makecache并更新yum -y update
image.png
  1. 查看yum源文件yum list|grep phpyum -y list php*
image.png

相关文章

网友评论

      本文标题:07. centos设置国内yum源

      本文链接:https://www.haomeiwen.com/subject/tygvgxtx.html