set http_proxy=http://127.0.0.1:8118
set https_proxy=http://127.0.0.1:8118
set http_proxy=
set https_proxy=
more ref: Setting proxy for apt from terminal
set HTTP_PROXY=http://user:password@proxy.domain.com:port
set HTTP_PROXY=http://127.0.0.1:8118
set HTTPS_PROXY=http://127.0.0.1:8118
Setting proxy for Windows CMD and Linux Terminal
原文:https://www.cnblogs.com/sonictl/p/11248627.html