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