Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| fcfa1d08d6 |
20
Readme.md
20
Readme.md
@@ -1,11 +1,29 @@
|
|||||||
# Installation apache
|
# Installation apache
|
||||||
|
|
||||||
Installer le paquet _httpd_
|
Installer le paquet _httpd_
|
||||||
|
```bash
|
||||||
|
dnf install httpd -y
|
||||||
|
```
|
||||||
|
|
||||||
Activer et lancer le service
|
Activer et lancer le service
|
||||||
|
```bash
|
||||||
|
systemctl enable --now httpd
|
||||||
|
```
|
||||||
Ouvrir le parefeu
|
Ouvrir le parefeu
|
||||||
|
```bash
|
||||||
|
firewalld-cmd --add-service http --permanent
|
||||||
|
firewalld-cmd --add-service https --permanent
|
||||||
|
firewall-cmd --reload
|
||||||
|
```
|
||||||
|
|
||||||
S'assurer du bon fonctionnement du service
|
S'assurer du bon fonctionnement du service
|
||||||
|
```bash
|
||||||
|
systemctl status httpd
|
||||||
|
ss -taupen |grep ':80'
|
||||||
|
```
|
||||||
|
|
||||||
Créer une page html dans /var/www/html et l'interroger avec curl ou wget
|
Créer une page html dans /var/www/html et l'interroger avec curl ou wget
|
||||||
|
```bash
|
||||||
|
echo '<h1>Hello world</h1>' >> /var/www/html/hello.html
|
||||||
|
curl http://localhost/hello.html
|
||||||
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user