使命令行实现访问代理

最简单的方法是 执行

export http_proxy=http://127.0.0.1:8087 
export https_proxy=http://127.0.0.1:8087 

(以上将http https协议代理到本地的8087端口 且只对当前终端窗口有效)

支持写法

http_proxy=http://userName:password@proxyAddress:port

 

posted @ 2016-08-13 19:11  宁默然  阅读(539)  评论(0编辑  收藏  举报