设置http/https代理:

export https_proxy="127.0.0.1:12333"

export http_proxy="127.0.0.1:12333"

如果有密码:

export http_proxy_user=test
export http_proxy_pass=test

测试代理http/https:

curl http://www.google.com

curl https://www.google.com

取消http/https代理设置:

unset http_proxy

unset https_proxy

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-02-03
  • 2021-05-28
  • 2021-06-10
  • 2021-07-19
  • 2021-10-13
猜你喜欢
  • 2021-12-19
  • 2021-09-14
  • 2021-07-04
  • 2021-08-20
  • 2021-09-24
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案