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