当前位置:网站首页>“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
边栏推荐
- 如何实现LRU算法
- Mongodb kernel source code implementation, performance tuning, best operation and maintenance practice series command processing module source code implementation 1
- Make a home page
- 会展云技术解读 | 面对突发事故,APP 如何做好崩溃分析与性能监控?
- Top 5 Chinese cloud manufacturers in 2018: Alibaba cloud, Tencent cloud, AWS, telecom, Unicom
- IP地址SSL证书
- 代码中的软件工程--对menu项目的源码分析
- day84:luffy:优惠活动策略&用户认证&购物车商品的勾选/结算
- Function calculation advanced IP query tool development
- Modify the files in the jar package
猜你喜欢
Technical point 5: XML language
当我们开发一个接口时需要注意些什么
CUDA_ Shared memory, memory access mechanism, access optimization
C / C + + Programming Notes: C language development tank war! In memory of our lost little overlord game
Python提示AttributeError 或者DeprecationWarning: This module was deprecated解决方法
Aikang Guobin denounced Guoxin Securities report as untrue and sent a lawyer's letter
lvgl 库 V7版本相关应用
Important components of Apache Hadoop
So what should investors do with the current market? Now a new investment outlet is coming!
JT Jingtao project
随机推荐
2018中国云厂商TOP5:阿里云、腾讯云、AWS、电信、联通 ...
LeetCode 50 Pow(x,n)
Do you know your server? Do you know what's inside the server
CRM系统能帮助企业做哪些事?
Algorithm template arrangement (1)
What is the SRM system? SRM supplier management system functions
What is the architecture of a live broadcast system worth more than $1 billion?
Validation failed for one or more entities. See ‘EntityValidationErrors’解决方法
day84:luffy:优惠活动策略&用户认证&购物车商品的勾选/结算
Realization of commodity backstage system
CUDA_全局内存及访问优化
Traditional purchasing mode has changed! How to innovate automobile purchasing function?
On the practical application of C 9's new features
mongodb内核源码实现、性能调优、最佳运维实践系列-command命令处理模块源码实现一
How SSL certificate and public IP address affect SEO
C + + game development
Application of V7 version of lvgl Library
Baishan cloud technology is selected as the top 100 Internet enterprises in China in 2020
毕业设计之 ---基于微服务框架的电影院订票系统
Important components of Apache Hadoop