How to check whether apache is installed in centos system

王林
Release: 2020-03-19 17:46:15
Original
5300 people have browsed it

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
Copy after login

Recommended tutorial: centos usage tutorial

You can also use the following two methods:

httpd   -v
Copy after login

or

apachectl   -v
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template