美文网首页
linux 设置代理

linux 设置代理

作者: youmisun | 来源:发表于2018-01-25 11:12 被阅读0次

在终端中设置代理

打开终端,输入以下命令

export http_proxy="http://127.0.0.1:1080";https_proxy="https://127.0.0.1:1080"

将http_proxy和https_proxy环境变量设置为代理的地址。我这里代理地址是http://127.0.0.1:1080。

在系统全局中设置代理

将上面的这条命令添加到 .bash_profile 文件即可

相关文章

网友评论

      本文标题:linux 设置代理

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