终端设置代理手持终端代理商
windwos配置用户变量
http_proxy与https_proxy
数值都为
http://localhost:portport为你的端口号
mac
vim ~/.bash_profile
新增
export http_proxy="http://localhost:port" export https_proxy="http://localhost:port"
如
export http_proxy="http://127.0.0.1:7890" export https_proxy="http://127.0.0.1:7890"
最后记得刷新一下
source ~/.bash_profile