yum使用代理

Centos系统,在/etc/yum.conf文件中加入一行:

proxy=http://hostname or ip:port

即可。如果用的是squid做代理,默认端口号是3128

你可能感兴趣的:(http,代理,proxy,yum)