打开/etc/profile文件,在末尾加上这三行
export http_proxy=http://proxy_ip:port #代表http代理
export https_proxy=http://proxy_ip:port #代表https代理
export ftp_proxy=http://proxy_ip:port #代表ftp代理
然后执行source /etc/profile 即可。