临时设置代理:

export https_proxy=http://127.0.0.1:7890 http_proxy=http://127.0.0.1:7890 all_proxy=socks5://127.0.0.1:7890

临时取消代理:

unset http_proxy
unset https_proxy
unset all_proxy

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