配置yum:

编辑/etc/yum.conf
添加下列一行:

proxy=http://domain/user:passwd@<proxy ip>:80

<proxy ip>:代理服务器的IP 地址

注意:代理地址必须以http开头