标签:
vi /etc/profile
添加下面内容
http_proxy = http://username:password@yourproxy:8080/
ftp_proxy = http://username:password@yourproxy:8080/
export http_proxy
export ftp_proxy
vi /etc/yum.conf
添加下面内容
proxy = http://username:password@yourproxy:8080/
*户名和密码如果不需要的话可以不填写
vi /etc/wgetrc
# Proxy
http_proxy=http://username:password@proxy_ip:port/
ftp_proxy=http://username:password@proxy_ip:port/
*重启系统
标签:
原文地址:http://www.cnblogs.com/jeffry/p/5066225.html