終端設(shè)置全局代理
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