Resolve the location where ubuntu comes with Apache and self-compiled and installed Apache

Source: Internet
Author: User

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 = "">

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.