设置fastestmirror
默认的fastestmirror并不是每次都能找到最快的源。
要进行一点算是优化的设置:
gedit /etc/yum/pluginconf.d/fastestmirror.conf
配置如下:
[main]
enabled=1
verbose=0
socket_timeout=1
hostfilepath=/var/cache/yum/timedhosts.txt
maxhostfileage=1
#设置成1,即每一天刷新一次镜像的速度
maxthreads=15
#exclude=.gov, facebook
做了如上设置后也许你还是连不上最快的镜像,这时就要RP和刷新了
yum clean all
这样可以清除镜像的记录,让yum重新刷新
看下system monitor里面的网卡速度,平均100K,比设置前的3~4K快多了

