windows cmd http_proxy 方法,该方法仅限 cmd,Windows下的命令行种类太多,方法不一样,这里仅为cmd写法
set http_proxy=http://127.0.0.1:1080
set https_proxy=http://127.0.0.1:1080
set http_proxy_user=user
set http_proxy_pass=pass
set https_proxy_user=user
set https_proxy_pass=pass
# 恢复
set http_proxy=
set https_proxy=
# linux 下命令为 export, 很相似
# export http_proxy=http://127.0.0.1:1080
本文参考 zcdll‘s blog 更多内容请去该博客查看
https://zcdll.github.io/2018/01/27/proxy-on-windows-terminal/