pod install问题:Failed to connect to 127.0.0.1 port 9743: Connection refused

今天在pod install 时,碰到如下问题

[!] Error installing AFNetworking

[!] /usr/bin/git clone https://github.com/AFNetworking/AFNetworking.git /var/folders/mn/13sgrc_946nf7wmcybsfcd700000gn/T/d20161123-2910-ek2lzk –single-branch –depth 1 –branch 3.0.4 –recursive

Cloning into ‘/var/folders/mn/13sgrc_946nf7wmcybsfcd700000gn/T/d20161123-2910-ek2lzk’…

fatal: unable to access ‘https://github.com/AFNetworking/AFNetworking.git/’: Failed to connect to 127.0.0.1 port 9743: Connection refused

是git代理的问题,通过浏览器访问该url和port时,也显示连接失败。

最后谷歌搜索通过,

 git config —global http.proxy先找到git代理,确定代理就是该url,

然后利用git config —global —unset http.proxy将git代理去除,再进行安装,顺利通过。

    原文作者:YH的练手记
    原文地址: https://www.jianshu.com/p/6afd14f5fcc8
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞