自用
linux 环境变量
export HTTP_PROXY='http://172.21.48.1:10809'
export http_proxy='http://172.21.48.1:10809'
export HTTPS_PROXY='http://172.21.48.1:10809'
export https_proxy='http://172.21.48.1:10809'
git 代理命令
git config --global http.proxy http://localhost:10809
git config --global https.proxy http://localhost:10809
pip 代理命令
pip config set global.proxy http://localhost:10809
conda 代理命令
conda config --set proxy_servers.http http://localhost:10809
conda config --set proxy_servers.https http://localhost:10809
通用
linux 环境变量
export http_proxy='http://user:password@proxy_host:port'
export HTTP_PROXY='http://user:password@proxy_host:port'
export https_proxy='http://user:password@proxy_host:port'
export HTTP_PROXY='http://user:password@proxy_host:port'
git 代理命令
git config --global http.proxy http://user:password@proxy_host:port
git config --global https.proxy http://user:password@proxy_host:port
pip 代理命令
pip config set global.proxy http://user:password@proxy_host:port
conda 代理命令
conda config --set proxy_servers.http http://user:password@proxy_host:port
conda config --set proxy_servers.https http://user:password@proxy_host:port