问题:
[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
修改 DNS:
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 ~]#