zoukankan      html  css  js  c++  java
  • 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

  • 相关阅读:
    投票系统完善
    投票系统设计与实现
    一天天进步
    洛谷P4168 [Violet]蒲公英 题解 数列分块
    LOJ6285. 数列分块入门 9 题解
    洛谷P5340 大中锋的游乐场 题解 分层图最短路
    P1073 [NOIP2009 提高组] 最优贸易 题解 分层图最短路
    洛谷P7297 [USACO21JAN] Telephone G 题解 分层图最短路
    洛谷P1119 灾后重建 题解 Floyd算法
    安装redis 后本地系统空间越来越小
  • 原文地址:https://www.cnblogs.com/hanggegege/p/6761104.html
Copyright © 2011-2022 走看看