Centons下 解决yum Loaded plugins: fastestmirror Determining fastest mirrors 的问题

[root@oldboyedu ~]# vim /etc/yum/pluginconf.d/fastestmirror.conf

[main]

enabled=0---------把原来的1改为0

verbose=0

always_print_best_host = true

socket_timeout=3

# Relative paths are relative to the cachedir (and so works for users as well

# as root).

hostfilepath=timedhosts.txt

maxhostfileage=10

maxthreads=15

#exclude=.gov,facebook

#include_only=.nl,.de,.uk,.ie

~

~

~

~

~

~

"/etc/yum/pluginconf.d/fastestmirror.conf" 12L,279C written

第二步:

[root@oldboyedu ~]# vi /etc/yum.conf

[main]

cachedir=/var/cache/yum/$basearch/$releasever

keepcache=0

debuglevel=2

logfile=/var/log/yum.log

exactarch=1

obsoletes=1

gpgcheck=1

plugins=0 -----把原来的1改为0

installonly_limit=5

bugtracker_url=http://bugs.centos.org/set_project.PHP?project_id=19&ref=http://bugs.centos.org/

bug_report_page.PHP?category=yum

distroverpkg=centos-release


# This is the default,if you make this bigger yum won't see if the Metadata

# is newer on the remote and so you'll "gain" the bandwidth of not having to

# download the new Metadata and "pay" for it by yum not having correct

# @R_308_4045@ion.

"/etc/yum.conf" 25L,969C written

相关文章

用的openwrt路由器,家里宽带申请了动态公网ip,为了方便把2...
#!/bin/bashcommand1&command2&wait从Shell脚本并行...
1.先查出MAMP下面集成的PHP版本cd/Applications/MAMP/bin/ph...
1、先输入locale-a,查看一下现在已安装的语言2、若不存在如...
BashPerlTclsyntaxdiff1.进制数表示Languagebinaryoctalhexa...
正常安装了k8s后,使用kubect工具后接的命令不能直接tab补全...