文章來(lái)源: https://blog.csdn.net/u010214802/article/details/90209893
設(shè)置代理
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
輸出當(dāng)前代理
echo $http_proxy
echo $https_proxy