• 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

  • 相关阅读:
    Nginx+.Net Core实现项目负载均衡
    linux(centos8):使用zip/unzip压缩和解压缩文件
    spring boot:用itextpdf处理pdf表格文件(spring boot 2.3.2)
    spring boot:使用poi导出excel电子表格文件(spring boot 2.3.1)
    spring boot:发送带附件的邮件和html内容的邮件(以163.com邮箱为例/spring boot 2.3.2)
    暗夜模式配置
    简述逻辑外键
    分页后端逻辑
    python算法时间复杂度
    python五大排序算法
  • 原文地址:https://www.cnblogs.com/hanggegege/p/6761104.html
Copyright © 2020-2023  润新知