wget下载HTTPS链接

wget -c -O master.zip --no-check-certificate https://github.com/mitsuhiko/flask/archive/master.zip

# master.zip 为文件名# https://... 为链接


wget是linux最常用的下载命令, 通常的运用要领是: “wget 空格+要下载文件的url路径”。

  比方 : [linux]# wget http://www.test.com/xxxx/xxx.tar.gz

  其中-c参数, 支持断点续传, 下载大文件时,假如不注意终止了, 能够继续运用命令接着下载。

  比方 : [linux]# wget -c http://www.test.com/xxxx/xxx.tar.gz

直接使用wget下载github.com HTTPS链接,报错

[linux]# wget https://github.com/mitsuhiko/flask/archive/master.zip

[root@11_09 ~]# wget https://github.com/mitsuhiko/flask/archive/master.zip
--2013-08-18 12:55:24--  https://github.com/mitsuhiko/flask/archive/master.zip
Resolving github.com... 204.232.175.90
Connecting to github.com|204.232.175.90|:443... connected.
ERROR: cannot verify github.com‘s certificate, issued by `/C=US/O=DigiCert Inc/OU=www.digicert.com/CN=DigiCert High Assurance EV CA-1‘:
  Unable to locally verify the issuer‘s authority.
To connect to github.com insecurely, use `--no-check-certificate‘.
Unable to establish SSL connection.

增加一个选项--no-check-certificate

[linux]# wget --no-check-certificate https://github.com/mitsuhiko/flask/archive/master.zip

可又增加一个问题,保存下来的文件是master,未知是什么格式。再增加一个选项-O xxx。

[linux]# wget -O master.zip --no-check-certificate https://github.com/mitsuhiko/flask/archive/master.zip

保存下来的是master.zip,与预想一致。配合-c参数,实现断点续传,PERFECT。

最络结果:[linux]#wget -c -O master.zip --no-check-certificate https://github.com/mitsuhiko/flask/archive/master.zip

dd

时间: 2024-12-10 16:07:17

wget下载HTTPS链接的相关文章

Linux wget下载https类型文件报错解决方法 转自老左博客

原文链接:http://www.laozuo.org/3648.html 一般我们远程调用下载文件直接用wget就可以,一般文件路径类型是http.如果有遇到是https就会下载出错,稍微不注意的新手朋友可能还认为是数据源出现问题.因为大脑不好用,所以刚才在有遇到这样问题的时候老左就顺带做一个记录,以便下次遇到这样的问题,以及有遇到同类问题的网友可以参照使用. 出现的错误大同小异类似上面的界面演示一样.其实我们仔细根据提示可以解决问题,只需要在wget后面加上--no-check-certifi

CentOS 6 下无法wget https链接的解决方法

CentOS6下最高版本的wget是1.11,但非常遗憾的是这个版本有bug,是没办法用来下载https链接的东西的,所以有些人为了避免这种情况会帮脚本加上不检查ssl的参数--no-check-certificate,但显然这个方法我并不是特别推荐,毕竟这并不是无解的. 而解决方法其实也不难,就是自己到gnu去下载新版本的wget来进行编译替换的动作.方法如下: yum -y install openssl openssl-devel gcc make perlcd ~wget http://

CentOS 6.x下wget 下载提示 Unable to locally verify the issuer’s authority 完美解决方案

CentOS 6.x下wget 下载提示 Unable to locally verify the issuer's authority 完美解决方案 栏目:Linux 作者:小天 点击: 1,453 次 升级了wget 和 OpenSSL后,下载https链接的文件时出现提示:ERROR: cannot verify ftp.gnu.org's certificate,.... Unable to locally verify the issuer's authority. 如下图: 其实解决

Wget下载多个链接

需要wget下载多个文件链接时,可以采用如下方法: 1. 将链接存入文件url.list中: 2. wget -bc -i url.list -o [log_file] -P [target_dir] 其中, -b backgournd,即后台下载: -c continues,继续下载尚未完成的任务,即如果当前目录下有下载过的某些文件,便不再下载这些文件: -i inputfile,输入url的文件 -o output,将打印内容输出到文件 -P prefix,即指定的下载目录 3. 可以用 t

wget 怎么下载https的连接错误: Unable to establish SSL connection

curl -O https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-2.4.11.tgz?_ga=1.33040702.1440244624.1410347116 或者 wget --no-check-certificate https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-2.4.11.tgz?_ga=1.33040702.1440244624.1410347116 wget不行的

wget 下载到指定目录

下载myfile.zip 到 /home/abc 目录wget -P /home/abc http://abc/myfile.zip [[email protected] cbx2012]# wget -P /home/cbx2012 https://raw.githubusercontent.com/hughesjr/chromium_el_builder/master/chrome_pepperflash_copy.sh[[email protected] cbx2012]# wget -P

wget下载站点文件

非常简单的指令,只需要: wget -c -r -p -k -np [URL] 下面解释下个参数的意义: -c 断点续传 -r 递归下载,可遍历整个站点的结构 -p 网页显示所需要的素材(图片\css\js之类) -k 将下载的网页里的连接转换为本地连接(这个功能很赞) -np 仅下载当前站点的文件(否则你可能会把整个互联网装在你的硬盘里) 下面贴出wget的帮助文件: [[email protected] ~]#wget --help GNU Wget 1.12,非交互式的网络文件下载工具.

linux下用wget下载文件

>>>linux下可以用wget来下载文件,wget支持http.https和ftp协议, 而且还支持通过http代理从http从web服务器上下载文件. wget支持断点续传.可以下载url中里面多个链接,进行递归下载 例:wget https://imgsa.baidu.com/forum/w%3D580/sign=62b665f76c59252da3171d0c049a032c/495877d3572c11df12a338ce6f2762d0f603c26b.jpg wget -b

linux上使用wget下载文件

首次安装的centos操作系统是没有安装wget的,所以首先需要先安装wget,然后才能使用wget下载文件. 1.第一步,保证centos能正常连网.使用命令  :yum -y install wget   如下图,稍等一会即可安装完成. 2.使用wget下载文件,以下载jdk为例. 首先到官网下载地址页面.https://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html 复制*.tar.g