Home >Operation and Maintenance >CentOS >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!