CentOS设置代理


编辑/etc/yum.conf,在最后加入

# Proxy

proxy=http://username:password@proxy_ip:port/