wsl2设置代理访问

2026-03-05 15:10:46 阅读:15 编辑
export http_proxy="http://192.168.2.248:7890"
export https_proxy="http://192.168.2.248:7890"
export http_proxy="http://127.0.0.1:7890"
export https_proxy="http://127.0.0.1:7890"
curl google.com.hk
wsl -d Ubuntu

windows使用代理

set HTTP_PROXY=http://192.168.2.248:7890
set HTTPS_PROXY=http://192.168.2.248:7890

取消代理

set HTTP_PROXY=
set HTTPS_PROXY=