Installer le paquet httpd
dnf install httpd -y
Activer et lancer le service
systemctl enable --now httpd
Ouvrir le parefeu
firewalld-cmd --add-service http --permanent firewalld-cmd --add-service https --permanent firewall-cmd --reload
S'assurer du bon fonctionnement du service
systemctl status httpd ss -taupen |grep ':80'
Créer une page html dans /var/www/html et l'interroger avec curl ou wget
echo '<h1>Hello world</h1>' >> /var/www/html/hello.html curl http://localhost/hello.html