设置代理:

export http_proxy="http://127.0.0.1:8889"
export https_proxy="https://127.0.0.1:8889"

取消代理:

unset http_proxy
unset https_proxy

如果想要使代理服务器永久生效,可以修改 /etc/profile文件 ,在profile 中添加或者删除。

Logo

更多推荐