Comment déterminer si Apache est déjà installé?

Comment déterminer si Apache est déjà installé?

Si vous utilisez un système Linux, Apache à haute chance est déjà installé par défaut. Dans le cas, vous pouvez utiliser les commandes suivantes pour déterminer si Apache est déjà installé.

Dans un système RPM comme Fedora Core

Émettez httpd -v ou / usr / sbin / httpd -v

[root@snake init.d]# httpd -v
Server version: Apache/2.2.11 (Unix)
Server built:   Mar  6 2009 09:12:25
[root@snake init.d]# /usr/sbin/httpd -v
Server version: Apache/2.2.11 (Unix)
Server built:   Mar  6 2009 09:12:25

Dans un système Apt comme Ubuntu ou Debian

Émettez apache2 -v ou / usr / local / apache / bin / apachectl -v

example@example-desktop:/$ apache2 -v
Server version: Apache/2.2.11 (Ubuntu)
Server built:   Aug 18 2009 14:28:29
example@example-desktop:/l$ /usr/local/apache/bin/apachectl -v
Server version: Apache/2.2.13 (Unix)
Server built:   Oct  5 2009 17:10:10

Sous Windows

Archiver le service Windows
1) Panneau de configuration d'accès -> Outils d'administration -> Services

2) Triez la colonne de nom, si Apache est installé, le nom s'affichera dans le service Windows.