-
國內鏡像站點
163:mirrors.163.com
阿里:mirrors.aliyun.com
-
修改默認yum源
- 備份系統(tǒng)自帶yum源文件:/etc/yum.repos.d/CentOS-Base.repo
- 下載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
- 刷緩存
yum makecache
并更新yum -y update
- 查看yum源文件
yum list|grep php
或yum -y list php*