Updated for Apache 2.4 for non-system (e.g. CentOS 6.x, Amazon Linux AMI) and systemd (e.g. CentOS 7.x):
There are two ways to reload the apache configuration, depending on what you want to do with the current threads, either advise you to exit standby mode or kill them directly.
Note that Apache recommends using apachectl -k as a command, and for systemd, the command is replaced with httpd -k
apachectl -k graceful or httpd -k graceful
Apache will report that its threads exit standby mode, and then apache reloads the configuration (it does not exit itself), which means that the statistics are not reset.
apachectl -k restart or httpd -k restart
This is like stopping because the process destroys the threads, but then the process reloads the configuration file rather than killing itself.
Source: https://httpd.apache.org/docs/2.4/stopping.html
jeffmcneill Aug 31 '17 at 5:19 2017-08-31 05:19
source share