美文网首页
Failed to connect to localhost p

Failed to connect to localhost p

作者: 恩莱客 | 来源:发表于2019-10-28 17:29 被阅读0次

    今天遇到pod update、pod install 报端口错误:

    fatal: unable to access '[https://github.com/danielgindi/Charts.git/](https://github.com/danielgindi/Charts.git/)': Failed to connect to localhost port 1087: Connection refused
    

    解决办法:

    1. 查询当前代理
    env | grep -i proxy
    http_proxy=http://localhost:1087
    https_proxy=http://localhost:1087
    
    2. 取消代理
    qunleedeMacBook-Pro:YiQiXiuCompany qunlee$ export http_proxy=""
    qunleedeMacBook-Pro:YiQiXiuCompany qunlee$ export https_proxy=""
    
    3. 查询是否修改
    qunleedeMacBook-Pro:YiQiXiuCompany qunlee$ env | grep -i proxy
    http_proxy=
    https_proxy=
    

    OK,现在再去做pod install、pod update操作就可以了。

    相关文章

      网友评论

          本文标题:Failed to connect to localhost p

          本文链接:https://www.haomeiwen.com/subject/cwwbvctx.html