当前位置:网站首页>“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
边栏推荐
猜你喜欢

Expect ':' at 0, actual = (JSON conversion exception resolution)

Top 5 Chinese cloud manufacturers in 2018: Alibaba cloud, Tencent cloud, AWS, telecom, Unicom

Fear of reconstruction? I'm too late to tell you how to refactor. Now I'm here

LeetCode 50 Pow(x,n)

Interviewer: what are cache penetration, cache avalanche and cache breakdown?

ES6, ES7, es8 Learning Guide

Validation failed for one or more entities. See 'entityvalidationerrors' solution

在PHP7下怎么大幅度提升Laravel框架性能?安装Stone!

探访2020 PG技术大会

The movie theater booking system based on micro Service Framework
随机推荐
Important components of Apache Hadoop
Day84: Luffy: preferential activity strategy & User Authentication & checking / settlement of shopping cart goods
手把手教你使用容器服务 TKE 集群审计排查问题
AQS source code in-depth analysis of conditional queue
IP address SSL certificate
Hand in hand to teach you to use container service tke cluster audit troubleshooting
害怕重构?都怪我太晚和你介绍该如何重构,现在我来了
如何高效进行模幂运算
What is the SRM system? SRM supplier management system functions
Prometheus安装配置
Mongodb kernel source code implementation, performance tuning, best operation and maintenance practice series command processing module source code implementation 1
November 09, 2020: talk about the similarities and differences between the bulon filter and the cuckoo filter?
Prometheus installation configuration
CUDA_存储器模型
如何k个一组反转链表
C / C + + Programming Notes: C language development tank war! In memory of our lost little overlord game
商品后台系统优化
面试官:缓存穿透、缓存雪崩和缓存击穿是什么?
Analysis steps of commodity background management
How to make a set of K reverse linked lists