CentOS 使用163yum源

下载163源

# wget http://mirrors.163.com/.help/CentOS7-Base-163.repo

如果报以下错误

-bash: wget: command not found

是因为没有安装 wget工具,我们需要装一下wget工具

# yum install wget -y

更新yum源

# yum clean all 
# yum makecache 
# yum update
 
若不能正常使用把原有的yum源注释掉
原文地址:https://www.cnblogs.com/BrotherCat/p/11224053.html