yum安装httpd报错Error: Unable to find a match: httpd

336 阅读1分钟

问题

yum安装httpd报错:Error: Unable to find a match: httpd

解决方法

cd /etc/yum.conf
vim yum.conf

注释 yum.conf 中的 exclude=httpd nginx php mysql mairadb python-psutil python2-psutil

[main]
gpgcheck=1
installonly_limit=3
clean_requirements_on_remove=True
best=True
skip_if_unavailable=False

#注释掉下面这行,或者只删除 “httpd”
# exclude=httpd nginx php mysql mairadb python-psutil python2-psutil