標簽(空格分隔): 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.
...