vi /etc/profile
http_proxy = http://username:password@yourproxy:port/
ftp_proxy = http://username:password@yourproxy:port/
export http_proxy
export ftp_proxy
vi /etc/yum.conf
追加
proxy = http://username:password@yourproxy:port/
或者
proxy=http://yourproxy:port
proxy=ftp://yourproxy:port
proxy_username=username
proxy_password=password
vi /etc/wgetrc
# Proxy
http_proxy=http://username:password@proxy_ip:port/
ftp_proxy=http://username:password@proxy_ip:port/