Operation monitoring Apache using APACHECTL program control Apache

Source: Internet
Author: User

APACHECTL program is the Apache server comes with a script, is stored in the bin directory, it is used to help administrators control Apache daemon httpd tools. You can use it to complete startup, stop, test configuration files, and so on.

Use the./apachectl-h parameter to get help with it. The parameters of the APACHECTL program are: Start,stop,restart,graceful,graceful-stop,startssl,sslstart,start-ssl,configtest,status, Fullstatus.

    • Start: First check the httpd configuration file, if there is no problem, start the HTTPD program, if the httpd has been started, an error message will be displayed.

    • Stop: Used to stop the HTTPD program, similarly, if the httpd has been stopped, an error message is displayed.

    • Restart: Restart httpd, if httpd does not start, start it. The httpd configuration file is also checked before booting.

    • Graceful: As with the start parameter, the difference is that it does not interrupt the connection that is currently being processed, nor does it close the log, which is recommended.

    • : As with the stop parameter, the difference is that it does not interrupt the connection that is currently being processed, nor does it close the log. Recommended use.

    • Configtest: Parses and checks the configuration file syntax. If no problem is reported syntax Ok, if the check does not pass then the syntax error or other details are displayed.

    • Status: Displays a brief status report, similar to the Fullstatus option, except that the request being processed is omitted.

    • Fullstatus: Shows the status report provided by Mod_status, which requires the launch of the Mod_status module and the installation of the Lynx browser.

The command examples are as follows:

$ sudo./apachectl  graceful$ sudo./apachectl  graceful-stop
    • Related articles recommended:
    • Shell that automatically monitors Web services
    • Install Webalizer to analyze Nginx and Apache logs
    • Apache implementation of single IP multi-port mapping method
    • This article from: Hobby Linux Technology Network
    • This article link: http://www.ahlinux.com/apache/8836.html

Run monitoring Apache using APACHECTL program Apache

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.