在Centos Linux系统使用yum search nginx命令出现了以下提示:
Loaded plugins: refresh-packagekit, security,如下图:
解决方法是:
运行:sudo vim /etc/yum/pluginconf.d/fastestmirror.conf
enabled=0 //把1改为0
verbose=0
socket_timeout=3
hostfilepath=/var/cache/yum/timedhosts.txt
maxhostfileage=10
maxthreads=15
#exclude=.gov, facebook
运行:sudo vim /etc/yum.conf
keepcache=0
debuglevel=2
logfile=/var/log/yum.log
exactarch=1
obsoletes=1
gpgcheck=1
plugins=1 #将plugins的值修改为0