yum install nginx發生的錯誤
yum install nginx Loaded plugins: fastestmirror, ovl Loading mirror speeds from cached hostfile ..... No package nginx available. Error: Nothing to do
解決方法:
可能缺乏epel
EPEL (Extra Packages for Enterprise Linux)是基於Fedora的一個項目,為“紅帽系”的操作系統提供額外的軟件包,適用於RHEL、CentOS和Scientific Linux.
yum install epel-release
如果還沒解決:
換源
禁用插件
1.修改插件的配置文件
# vim /etc/yum/pluginconf.d/fastestmirror.conf
enabled = 0//由1改為0,禁用該插件
2.修改yum的配置文件
# vim /etc/yum.conf
plugins= 0//改為0,不使用插件