美文网首页iOS高级技术文章
mac中命令行中设置代理

mac中命令行中设置代理

作者: stepyu | 来源:发表于2016-06-02 15:54 被阅读122次

mac中命令行中设置代理

#设置代理,不需要用户名密码,就去掉username:paasword@
export http_proxy='http://username:paasword@x.x.x.x:xx'
export https_proxy=$http_proxy

#去掉代理
unset http_proxy
unset https_proxy

相关文章

网友评论

    本文标题:mac中命令行中设置代理

    本文链接:https://www.haomeiwen.com/subject/jcdkdttx.html