终端设置代理
linux
# http
export http_proxy=http://127.0.0.1:7890
export https_proxy=http://127.0.0.1:7890
# git
export GIT_SSH_COMMAND='ssh -o ProxyCommand="nc -x 127.0.0.1:7890 %h %p"'
win
cmd
# http
set http_proxy=http://127.0.0.1:7890
set https_proxy=http://127.0.0.1:7890
power shell
# http
$env:http_proxy="http://127.0.0.1:7890"
$env:https_proxy="http://127.0.0.1:7890"
由于个人水平有限,文中若有不合理或不正确的地方欢迎指出改正