【Linux排错】wget_insecurely

来源:互联网 发布:杭州淘宝学院 编辑:程序博客网 时间:2024/05/21 20:30

远程调用下载文件直接用wget就可以,一般文件路径类型是http。如果有遇到是https就会下载出错。

错误如下:

[root@localhost ~]# wget https://sourceforge.net/projects/nagios/files/nagios-3.x/nagios-3.2.0/
--2017-07-08 05:26:09--  https://sourceforge.net/projects/nagios/files/nagios-3.x/nagios-3.2.0/
Resolving sourceforge.net... 216.34.181.60
Connecting to sourceforge.net|216.34.181.60|:443... connected.
ERROR: certificate common name 鈥.sourceforge.net鈥doesn鈥檛 match requested host name 鈥渟ource

To connect to sourceforge.net insecurely, use -no-check-certificate

大意是连接到该链接不安全,请使用“”--no-check-certificate“”命令;

按照如下格式使用命令即可:

wget  --no-check-certificate  https://sots/nagios/files/nagios-3.x/nagios-3.2.0


End.