当前位置:网站首页>“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
边栏推荐
- Aikang Guobin denounced Guoxin Securities report as untrue and sent a lawyer's letter
- Top 5 Chinese cloud manufacturers in 2018: Alibaba cloud, Tencent cloud, AWS, telecom, Unicom
- LeetCode 49 字母异位词分组
- C / C + + Programming Notes: C language development tank war! In memory of our lost little overlord game
- DB engines database ranking in November: PostgreSQL holds the top spot in the same period
- 恒讯科技浅谈:出现服务器宕机的处理方式
- Python prompt attributeerror or depreciation warning: This module was degraded solution
- Validation failed for one or more entities. See ‘EntityValidationErrors’解决方法
- Must see! RDS database all in one
- Jingtao project Day10
猜你喜欢

asp.net core中使用Serilog以及自定义Enricher

CRM系统能帮助企业做哪些事?

Visit 2020 PG Technology Conference

代码中的软件工程--对menu项目的源码分析

SQL intercepts the data before and after the '.'

Postman(一)---功能介绍

How SSL certificate and public IP address affect SEO

Postman (1) -- function introduction

CUDA_存储器模型

Prometheus installation configuration
随机推荐
Top 5 Chinese cloud manufacturers in 2018: Alibaba cloud, Tencent cloud, AWS, telecom, Unicom
nodejs篇-手写koa中间件
The movie theater booking system based on micro Service Framework
Kubernetes-18: installation and use of dashboard
那么当下的行情投资者该怎么办呢? 现在新的投资风口来了!
毕业即失业?大学生如何分配学习时间比例,拥有完整计算机知识体系?
团灭 LeetCode 打家劫舍 问题
Gets the property value of a column in the list collection object
C/C++编程日记:逻辑井字棋(圈叉)游戏开发
sql 截取数据中 ‘.’的前后数据
Application of EMQ X in Internet of things platform of China Construction Bank
C + + game development
没有磁盘空间 No space left on device
Just graduated will be confused, I after 7 years of summary, give programmers your 7 suggestions
[best practice] learn how eolinker helps Telecommuting
Operation and design of rights management in ERP
[best practice] learn how eolinker helps Telecommuting
LeetCode 50 Pow(x,n)
会展云技术解读 | 面对突发事故,APP 如何做好崩溃分析与性能监控?
SQL intercepts the data before and after the '.'