wget获取https地址时加入--no-check-certificate

[root@localhost ~]# wget https://www.kernel.org/pub/software/scm/git/git-2.0.5.tar.gz
--2018-03-22 01:43:37--  https://www.kernel.org/pub/software/scm/git/git-2.0.5.tar.gz
Resolving www.kernel.org... 147.75.42.139, 2604:1380:40a0:500::1
Connecting to www.kernel.org|147.75.42.139|:443... connected.
ERROR: certificate common name “kernel.org” doesn’t match requested host name “www.kernel.org”.
To connect to www.kernel.org insecurely, use ‘--no-check-certificate’.

连接到www.kernel.org不安全,使用“不检查证书”
加入no-check-certificate 即可成功安装

[root@localhost ~]# wget --no-check-certificate 'https://www.kernel.org/pub/software/scm/git/git-2.0.5.tar.gz'
。
。
。
100%[======================================>] 4,910,412    180K/s   in 36s     

猜你喜欢

转载自blog.csdn.net/yu876876/article/details/79656422