加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > 安全 > 正文

Centons下 解决yum Loaded plugins: fastestmirror Determining

发布时间:2020-12-15 16:31:35 所属栏目:安全 来源:网络整理
导读:[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

[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

# information.

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

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读