yum 安装软件提示 [Errno 14] curl#6 - "Could not resolve host: mirrors.cloud.aliyuncs.com; 未知的错误"


  1. 更改 DNS
1
echo -e "# Generated by NetworkManager\nnameserver 114.114.114.114\nnameserver 119.29.29.29" > /etc/resolv.conf
  1. 重启网络服务
1
systemctl restart network
  1. 更新 yum 缓存
1
yum clean all
1
yum makecache