各个终端设置代理的方法

端口以11223为例子

1
2
3
4
5
6
7
8
9
10
11
cmd:   set http_proxy=http://127.0.0.1:11223 & set https_proxy=http://127.0.0.1:11223

powershell: $Env:http_proxy="http://127.0.0.1:11223";$Env:https_proxy="http://127.0.0.1:11223"

unix: export HTTP_PROXY=http://127.0.0.1:11223; export HTTPS_PROXY=http://127.0.0.1:11223; export ALL_PROXY=socks5://127.0.0.1:11223


pip: -i http://pypi.doubanio.com/simple/ --trusted-host pypi.doubanio.com #临时换源

npm config set registry https://registry.npm.taobao.org #npm 永久镜像
npm install -g cnpm --registry=https://registry.npm.taobao.org #用cnpm代替,cnpm走国内,npm不做任何更改

to do……


各个终端设置代理的方法
http://tang895.github.io/2022/07/08/各个终端设置代理的方法/
作者
TangYijun
发布于
2022年7月8日
许可协议