怎么给Linux系统设置代理

系统代理

export http_proxy=http://192.168.0.205:7890
export https_proxy=http://192.168.0.205:7890
export ALL_PROXY=socks5://192.168.0.205:7890  # 如需 SOCKS 代理

代理服务

不建议在linux设置代理,很麻烦,不如直接用win开一个***服务,然后走lan.

注意

  • 不要用ping测试,ping不走代理。
  • https链接是用http

测试

  • 用curl测试
curl -L https://www.google.com
  • github测试
    git设置了代理也是失败。
posted @ 2025-08-27 21:08  ylifs  阅读(16)  评论(0)    收藏  举报