【异常】阿里云ECS之Centos7下载文件出现”wget: unable to resolve host address”
来源:互联网 发布:java字符串替换失败 编辑:程序博客网 时间:2024/06/09 21:10
[root@iz2ze8w7169ei61c5c1il5z yum.repos.d]# wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo--2017-06-07 21:35:07-- http://mirrors.aliyun.com/repo/Centos-7.repoResolving mirrors.aliyun.com (mirrors.aliyun.com)... failed: Name or service not known.wget: unable to resolve host address ‘mirrors.aliyun.com’
下载yum镜像的时候出现wget失灵的情况,
wget默认安装的
分析是DNS的问题
解决办法:
vi /etc/resolv.conf
添加如下内容(默认里面什么都没有)
nameserver 8.8.8.8nameserver 8.8.4.4
OK
阅读全文
0 0
- 【异常】阿里云ECS之Centos7下载文件出现”wget: unable to resolve host address”
- wget: unable to resolve host address的解决方法
- wget: unable to resolve host address的解决方法
- Ubuntu下“wget:unable to resolve host address”解决方案
- wget: unable to resolve host address的解决方法
- Linux系统wget unable to resolve host address解决办法
- wget: unable to resolve host address ‘repo.zabbix.com’
- unable to resolve host address
- cents上执行wget报错:unable to resolve host address
- Android 异常java.net.UnknownHostException: Unable to resolve host xxx: No address associate
- Android异常:Unable to resolve host "...": No address associated 错误 解决方案
- sudo 出现unable to resolve host 解决方法
- sudo 出现unable to resolve host 解决方法
- sudo 出现unable to resolve host 解决方法
- sudo 出现unable to resolve host 解决方法
- sudo 出现unable to resolve host 解决方法
- sudo 出现unable to resolve host 解决方法
- sudo 出现unable to resolve host 解决方法
- VIM多个文档之间复制粘贴
- 欢迎使用CSDN-markdown编辑器
- 面试过程中遇到问题的总结与分析
- 一个从JSP到Servlet的简单小实例
- Java 习题5 参考答案及解析(1)
- 【异常】阿里云ECS之Centos7下载文件出现”wget: unable to resolve host address”
- forward 和redirect的区别
- Eclipse/Myeclipse中引入.Js文件后出现 missing semicolon错误的解决。
- java NIO与IO的区别
- Spring3.1.0实现原理分析(十二).MVC核心类DispatcherServlet初始化过程
- df -h命令卡住,报错 kernel: nfs: server xx.xx.xx.xx not responding, still trying
- 开始用react-native工作
- 数组与集合的应用之数组演练(获取一维数组最小值)
- 0016_3Sum Closest