当前位置:网站首页>“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
边栏推荐
- The problem of looting by leetcode
- Modify the files in the jar package
- 害怕重构?都怪我太晚和你介绍该如何重构,现在我来了
- Exhibition cloud technology interpretation | in the face of emergencies, how does app do a good job in crash analysis and performance monitoring?
- [best practice] learn how eolinker helps Telecommuting
- How much is the cost of CRM system?
- LeetCode 49 字母异位词分组
- 白山云科技入选2020中国互联网企业百强
- ES6, ES7, es8 Learning Guide
- Interviewer: what are cache penetration, cache avalanche and cache breakdown?
猜你喜欢

How to carry out modular power operation efficiently

Common settings of PLSQL developer

C / C + + Programming Notes: C language development tank war! In memory of our lost little overlord game

Mongodb kernel source code implementation, performance tuning, best operation and maintenance practice series command processing module source code implementation 1

会展云技术解读 | 面对突发事故,APP 如何做好崩溃分析与性能监控?

eleven point nine

Prometheus安装配置

The solution of type interface * * is not known to the mapperregistry

Python提示AttributeError 或者DeprecationWarning: This module was deprecated解决方法

Can public IP address and SSL certificate improve SEO?
随机推荐
C/C++编程笔记:C语言开发坦克大战!纪念我们逝去的小霸王游戏
快来学习!个性化推荐系统开发指南(附网盘链接)
Common concepts and points for attention of CUDA
面试官:缓存穿透、缓存雪崩和缓存击穿是什么?
nodejs篇-手写koa中间件
Top 5 Chinese cloud manufacturers in 2018: Alibaba cloud, Tencent cloud, AWS, telecom, Unicom
Leetcode 49 letter heterotopic word grouping
京淘项目day10
LeetCode 49 字母异位词分组
sql 筛选查询重复列
PL/SQL Developer临时用户和新手的功能指南
How can financial management system help enterprises realize financial automation management?
剑指offer之打印二叉搜索树中第k小的结点
Postman (1) -- function introduction
How to implement LRU algorithm
将Map中对应的key和value赋值到对象中
Jingtao project Day10
那么当下的行情投资者该怎么办呢? 现在新的投资风口来了!
How to greatly improve the performance of larravel framework under php7? Install stone!
Python中[:]与[::]的用法