Fedora 36安装httpd
1、下载安装httpd:
sudo dnf install httpd
2、启用httpd服务:
sudo systemctl start httpd
开机启动:
sudo systemctl enable httpd
查看状态:
sudo systemctl status httpd
3、配置防火墙:
如果您正在运行 firewalld(默认就是),请允许 HTTP 和 HTTPS 服务
sudo firewall-cmd --add-service={http,https} --permanent
sudo firewall-cmd --reload
4、打开浏览器测试:http://localhost,出现"Fedora Webserver Test Page"即成功。