window设置代理set HTTP_PROXY
参考
设置代理-CMD (Run below command)
使用cmd命令设置代理 cmd关闭时就失效
set HTTP_PROXY =http://username:password@host:port set HTTPS_PROXY=http://username:password@host:port set no_proxy=localhost,127.0.0.*
设置代理-环境变量(add into environment variables)
选项卡中新建http_proxy和https_proxy环境变量,这样配置的代理全局有效
查看代理:
set http_proxy
set https_proxy
取消代理:
set http_proxy=
set https_proxy=