Resolve the location where ubuntu comes with Apache and self-compiled and installed Apache
In linux, Apache has a previous management tool: apachectl, which is used to manage the startup, shutdown, and some settings of Apache in the background.
Apachectl -- help
View usage.
Here we can use the apachectl script (bash script) to check where the httpd is controlled?
1. First find the apachectl script
Whereis apachectl
2. Go to the directory where apachectl is located and use the vi editor to view the apachectl content.
Vi command:/HTTPD
Find HTTPD
Figure 20150129_01 is the location where the system comes with apache (httpd with Apache in Ubuntu has been renamed: Apache2)
Figure 20150129_02 is the self-installed apache location.
<Strong? Http: www.bkjia.com kf ware vc "target =" _ blank "class =" keylink "> VcD4KPHA + pgltzybzcm9 "http://www.2cto.com/uploadfile/Collfiles/20150130/20150130095928116.png" alt = "">