阿里云ECS之Centos7下载文件出现”wget: unable to resolve host address”
wget https://dev.mysql.com/get/mysql80-community-release-el7-3.noarch.rpm --2020-07-06 22:01:10-- https://dev.mysql.com/get/mysql80-community-release-el7-3.noarch.rpm Resolving dev.mysql.com (dev.mysql.com)... failed: Name or service not known. wget: unable to resolve host address ‘dev.mysql.com’
下载yum镜像的时候出现wget失灵的情况,
wget默认安装的
分析是DNS的问题
解决办法:
vi /etc/resolv.conf nameserver 8.8.8.8 nameserver 8.8.4.4