文章来源: https://blog.csdn.net/u010214802/article/details/90209893
设置代理
export http_proxy=http://127.0.0.1:49776
export https_proxy=$http_proxy
export ftp_proxy=$http_proxy
export rsync_proxy=$http_proxy
export no_proxy="localhost,127.0.0.1"
取消代理
unset http_proxy
unset https_proxy
unset ftp_proxy
unset rsync_proxy
输出当前代理
echo $http_proxy
echo $https_proxy