目录

Apache:No match for argument: httpd

找到yum.conf

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

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

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

  Active: active (running)

  Status: “Started, listening on: port 80”

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

./1.png