找到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

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

参考:

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

相关文章:

  • 2022-01-01
  • 2022-12-23
  • 2021-07-20
  • 2021-07-21
  • 2022-02-15
  • 2021-06-07
  • 2021-12-18
猜你喜欢
  • 2022-12-23
  • 2021-11-22
  • 2022-12-23
  • 2021-07-31
  • 2022-01-03
  • 2022-12-23
  • 2021-11-27
相关资源
相似解决方案