Home >Operation and Maintenance >CentOS >How to check whether apache is installed in centos system

How to check whether apache is installed in centos system

王林
王林Original
2020-03-19 17:46:155345browse

How to check whether apache is installed in centos system

The method is as follows:

If you install it through the rpm package, use the following command directly:

rpm -q httpd

Recommended tutorial: centos usage tutorial

You can also use the following two methods:

httpd   -v

or

apachectl   -v

If Linux automatically installs APACHE, use apachectl directly - v command, if you are told that there is no such method, you can know that apache is not installed on the system. If it has been installed, the version of apache will be displayed. As for the installation directory, use apachectl -- c to know.

Recommended related video tutorials: linux video tutorial

The above is the detailed content of How to check whether apache is installed in centos system. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn