To check whether the apache service is installed under Linux, you can use the following two commands:
apachectl -v //或 httpd -v
The effects of the above two commands are the same, and the output results are as follows:
If the output results include the following information, it means that the apache service has been installed on the system.
Server version: Apache/2.2.15 (Unix) Server built: Dec 5 2012 04:03:01
Recommended tutorial: linux tutorial
The above is the detailed content of How to check whether the apache service is installed under linux. For more information, please follow other related articles on the PHP Chinese website!