在~/.bashrc或者/etc/profile下,添加下面
http_proxy=http://192.168.105.171:80 https_proxy=$http_proxy export http_proxy export https_proxy
然后source ** 完成!