fatal: read error: Connection reset by peer解決辦法


標簽(空格分隔): ceph源碼安裝,git


問題描述:

源碼安裝ceph,克隆代碼時提示如下錯誤:

[root@localhost ~]# git clone git://github.com/ceph/ceph
正克隆到 'ceph'...
fatal: read error: Connection reset by peer

解決辦法:

首先確認是否可以訪問外網:

[root@localhost ~]# ping www.baidu.com
PING www.a.shifen.com (14.215.177.38) 56(84) bytes of data.
64 bytes from 14.215.177.38 (14.215.177.38): icmp_seq=1 ttl=54 time=27.7 ms
64 bytes from 14.215.177.38 (14.215.177.38): icmp_seq=2 ttl=54 time=14.2 ms

如果可以訪問外網,把 git: 修改為 http: 即可:

[root@localhost ~]# git clone http://github.com/ceph/ceph
正克隆到 'ceph'...
remote: Counting objects: 573631, done.
remote: Compressing objects: 100% (13/13), done.
...

參考文檔:

fatal: read error: Connection reset by peer


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM