加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > 安全 > 正文

bash – 无法使用curl命令下载github项目

发布时间:2020-12-15 18:49:09 所属栏目:安全 来源:网络整理
导读:我使用“curl -sO”命令从这个 GitHub项目链接下载项目文件: http://github.com/ziyaddin/xampp/archive/master.zip 但是,我无法下载.发生错误,并说: Archive: /home/ziyaddin/Desktop/master.zip[/home/ziyaddin/Desktop/master.zip] End-of-central-dire
我使用“curl -sO”命令从这个 GitHub项目链接下载项目文件:
http://github.com/ziyaddin/xampp/archive/master.zip

但是,我无法下载.发生错误,并说:

Archive:  /home/ziyaddin/Desktop/master.zip
[/home/ziyaddin/Desktop/master.zip]   End-of-central-directory
signature not found.  Either this file is not   a zipfile,or it
constitutes one disk of a multi-part archive.  In the   latter case
the central directory and zipfile comment will be found on   the last
disk(s) of this archive. zipinfo:  cannot find zipfile directory in
one of /home/ziyaddin/Desktop/master.zip or
          /home/ziyaddin/Desktop/master.zip.zip,and cannot find 
/home/ziyaddin/Desktop/master.zip.ZIP,period.

但是我可以使用curl命令下载此链接:
http://cloud.github.com/downloads/pivotal/jasmine/jasmine-standalone-1.3.1.zip

我认为这是因为它是在cloud.github.com.我想知道如何从卷曲命令的第一个链接下载?

$curl -LOk https://github.com/ziyaddin/xampp/archive/master.zip
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   119  100   119    0     0    375      0 --:--:-- --:--:-- --:--:--   388
  0     0    0  1706    0     0   1382      0 --:--:--  0:00:01 --:--:--  333k

>你必须使用https://>您必须使用-L来跟踪重定向>如果您的证书文件丢失,则必须使用-k

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读