一、CMD
设置:
set http_proxy="http://username:password@ip:port"
set https_proxy="http://username:password@ip:port"
查看:
set http_proxy
set https_proxy
取消:
set http_proxy=
set https_proxy=
cmd关闭时就失效
二、NPM
设置:
npm config set proxy http://username:password@ip:port
npm config set https-proxy http://username:password@ip:port
查看:
npm config get proxy
npm config get https-proxy
取消:
npm config delete proxy
npm config delete https-proxy
三、GIT
设置:
git config --global http.proxy http://username:password@ip:port
git config --global https.proxy http://username:password@ip:port
查看:
git config --global http.proxy
git config --global https.proxy
取消:
git config --global --unset http.proxy
git config --global --unset https.proxy