dnf provides http
dnf install -y httpd
httpd -v
httpd -t
将如下97行取消注释消除报错
重新测试配置文件
httpd -t
systemctl enable httpd --now
或
systemctl enable httpd
systemctl start httpd
systemctl status httpd
firewall-cmd --zone=public --add-port=80/tcp --permanent
firewall-cmd --reload
ss -lnp | grep 80
curl 127.0.0.1:80