Centos设置代理
-
yum源
编辑/etc/yum.conf 文件
添加:
#Proxy
proxy=http://username:password@yourproxy:8080/
-
全局代理
编辑/etc/profile 文件
添加:
# Proxy
http_proxy=”http://username:password@yourproxy:8080″
export_http_proxy
或
# Proxy
export http_proxy=”http://username:password@yourproxy:8080″
-
wget代理
编辑/etc/wgetrc
添加:
# Proxy
http_proxy=http://username:password@proxy_ip:port/