终端设置全局代理
export http_proxy="http://127.0.0.1:1080"
export https_proxy="http://127.0.0.1:1080"
终端取消全局代理
unset http_proxy
unset https_proxy
unset ftp_proxy
unset all_proxy
unset no_proxy
查看是否还存在代理
env | grep -i proxy
PS : 清空代理需要重新打开 terminal
网友评论