- En activant un 'service' dans l'interface graphique
- A la ligne de commande dans un terminal
C'est une activiation comme IIS dans les modules Windows.
Avec 'Système', 'Administration', 'Services', s'ouvre la fenêtre 'Configuration du service' (ci-dessous).
Dans l'onglet 'Services d'arrière-plan', la liste donne les services que l'on peut sélectionner, démarrer et arrêter.Vérifier dans un terminal la version du serveur Apache avec la commande 'httpd -v'.

2) En ligne de commande avec 'service httpd start | stop | status | restart
Ouvrir un terminal, 'Application', ' Outil système' 'Terminal'.
La commande httpd est dans le répertoire /etc/rc.d/init.d. Pour l'atteindre, utiliser la commande 'service'.
[root@host /]# service httpd restart
Arrêt de httpd : [ OK ]
Démarrage de httpd : [ OK ]
[root@host /]# service httpd status
httpd (pid 26717 26716 26715 26714 26713 26712 26711 26710 26708) en cours d'exécution...
[root@host /]# service httpd stop
Arrêt de httpd : [ OK ]
[root@host /]# service httpd status
httpd est arrêté
[root@host /]# service httpd restart
Arrêt de httpd : [ÉCHOUÉ] (c'est normal, il était déjà arrêté)
Démarrage de httpd : [ OK ]
[root@host /]# service httpd status
httpd (pid 26789 26788 26787 26786 26785 26784 26783 26782 26780) en cours d'exécution...
[root@host /]#
A noter que ces status au niveau des lignes de commande correspondent aux statut que l'on retrouve dans la boîte de dialogue du service httpd vue plus haut.
No comments:
Post a Comment