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