yum 安装时错误 Couldn't resolve host 解决办法

修改/etc/resolv.conf

添加:nameserver 8.8.8.8

原文地址:https://www.cnblogs.com/yangqimo/p/7457075.html