代码之家  ›  专栏  ›  技术社区  ›  alphayan

如何在win10 global上导出git bash中的http\U代理

  •  3
  • alphayan  · 技术社区  · 8 年前

    我通常使用git bash执行一些操作,如
    go get , docker pull curl -i google.com 等等

    现在我使用
    export http_proxy=http://127.0.0.1:1080
    有没有一种好方法可以将http_代理设置为全局和永久的。

    提前谢谢你。

    1 回复  |  直到 8 年前
        1
  •  1
  •   Navin a.s    8 年前

    对于永久代理设置,请在环境变量中设置代理。 click here https://docs.cloudfoundry.org/cf-cli/http-proxy.html 如果想法不起作用,请删除变量值中的https://。