当前位置:网站首页>“wget: 无法解析主机地址”的解决方法
“wget: 无法解析主机地址”的解决方法
2020-11-09 23:48:00 【码农UP2U】
问题:
[root@iZ2zefny2a19ms6azli2pwZ ~]# wget https://download.redis.io/releases/redis-5.0.10.tar.gz
--2020-11-01 14:30:12-- https://download.redis.io/releases/redis-5.0.10.tar.gz
正在解析主机 download.redis.io (download.redis.io)... 失败:未知的名称或服务。
wget: 无法解析主机地址 “download.redis.io”
解决方法:
[root@iZ2zefny2a19ms6azli2pwZ ~]# sudo vim /etc/resolv.conf
修改名字服务器:
options timeout:2 attempts:3 rotate single-request-reopen
; generated by /usr/sbin/dhclient-script
#nameserver 100.100.2.138
#nameserver 100.100.2.136
nameserver 8.8.8.8
nameserver 8.8.8.4
再次下载:
[root@iZ2zefny2a19ms6azli2pwZ ~]# wget https://download.redis.io/releases/redis-5.0.10.tar.gz
--2020-11-01 14:33:13-- https://download.redis.io/releases/redis-5.0.10.tar.gz
正在解析主机 download.redis.io (download.redis.io)... 45.60.125.1
正在连接 download.redis.io (download.redis.io)|45.60.125.1|:443... 已连接。
已发出 HTTP 请求,正在等待回应... 200 OK
长度:1990507 (1.9M) [application/octet-stream]
正在保存至: “redis-5.0.10.tar.gz”
100%[========================================================================================>] 1,990,507 13.3KB/s 用时 2m 20s
2020-11-01 14:35:35 (13.9 KB/s) - 已保存 “redis-5.0.10.tar.gz” [1990507/1990507])
[root@iZ2zefny2a19ms6azli2pwZ ~]#
版权声明
本文为[码农UP2U]所创,转载请带上原文链接,感谢
https://my.oschina.net/coderup2u/blog/4710390
边栏推荐
- Modify the files in the jar package
- C + + game development
- Error running app:Default Activity not found 解决方法
- Can public IP address and SSL certificate improve SEO?
- Kubernetes-18: installation and use of dashboard
- 公网IP地址和SSL证书可以提升SEO吗?
- 如何k个一组反转链表
- SQL filter query duplicate columns
- 恒讯科技浅谈:出现服务器宕机的处理方式
- Guest interview: Wang Jian
猜你喜欢
Top 5 Chinese cloud manufacturers in 2018: Alibaba cloud, Tencent cloud, AWS, telecom, Unicom
Validation failed for one or more entities. See ‘EntityValidationErrors’解决方法
How much is the cost of CRM system?
LinkedList源码简析
会展云技术解读 | 面对突发事故,APP 如何做好崩溃分析与性能监控?
Prometheus installation configuration
SSL证书和公网IP地址如何影响SEO
Python提示AttributeError 或者DeprecationWarning: This module was deprecated解决方法
Low power Bluetooth single chip helps Internet of things
Jingtao project Day10
随机推荐
Algorithm template arrangement (1)
必看!RDS 数据库入门一本通(附网盘链接)
Low power Bluetooth single chip helps Internet of things
Function calculation advanced IP query tool development
公网IP地址和SSL证书可以提升SEO吗?
sql 截取数据中 ‘.’的前后数据
SQL case conversion, remove the space before and after
Dongge ate grapes when he ate an algorithm problem!
Operation and design of rights management in ERP
Daily page number style problems
Realization of commodity backstage system
How to greatly improve the performance of larravel framework under php7? Install stone!
【CentOS7操作系统安全加固系列】第(2)篇
No space left on device
2018中国云厂商TOP5:阿里云、腾讯云、AWS、电信、联通 ...
sql 筛选查询重复列
input 与 button 的问题 (空隙/不等高/对不齐)及 解决办法
From master of Engineering Physics of Tsinghua University to open source entrepreneur of cloud computing
如何高效进行模幂运算
Python提示AttributeError 或者DeprecationWarning: This module was deprecated解决方法