码迷,mamicode.com
首页 > Web开发 > 详细

解决centos安装不上apache:No match for argument: httpd

时间:2020-03-30 09:41:30      阅读:523      评论:0      收藏:0      [点我收藏+]

标签:apach   linux   idt   only   mit   active   version   str   listening   

找到yum.conf

[root@d78acc291c9e var]# find / -name yum.conf
/etc/yum.conf

注释掉exclude那行,也可只删除httpd

[main]
gpgcheck=1
installonly_limit=3
clean_requirements_on_remove=True
best=True
#exclude=httpd nginx php mysql mairadb python-psutil python2-psutil
//重新安装
yum install httpd -y systemctl enable httpd systemctl start httpd systemctl status httpd

  Active: active (running)

  Status: "Started, listening on: port 80"

[root@d78acc291c9e var]# httpd -v
Server version: Apache/2.4.37 (centos)
Server built:   Dec 23 2019 20:45:34

技术图片

参考:

https://www.linuxquestions.org/questions/fedora-35/yum-can%27t-find-httpd-or-apache-547678/ 

解决centos安装不上apache:No match for argument: httpd

标签:apach   linux   idt   only   mit   active   version   str   listening   

原文地址:https://www.cnblogs.com/v5captain/p/12596403.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!