最終更新:2019-11-02 (土) 12:19:30 (1635d)
apachectl
Top / apachectl
Apache HTTP Server Control Interface
usage
OPTIONS Only the SysV init-style options are defined here. Other arguments are defined on the httpd manual page. start Start the Apache httpd daemon. Gives an error if it is already running. This is equivalent to apachectl -k start. stop Stops the Apache httpd daemon. This is equivalent to apachectl -k stop. restart Restarts the Apache httpd daemon. If the daemon is not running, it is started. This command automatically checks the configura‐ tion files as in configtest before initiating the restart to make sure the daemon doesn't die. This is equivalent to apachectl -k restart. fullstatus Displays a full status report from mod_status. For this to work, you need to have mod_status enabled on your server and a text- based browser such as lynx available on your system. The URL used to access the status report can be set by editing the STA‐ TUSURL variable in the script. status Displays a brief status report using systemd. graceful Gracefully restarts the Apache httpd daemon. If the daemon is not running, it is not started. This differs from a normal restart in that currently open connections are not aborted. A side effect is that old log files will not be closed immedi‐ ately. This means that if used in a log rotation script, a sub‐ stantial delay may be necessary to ensure that the old log files are closed before processing them. This command automatically checks the configuration files as in configtest before initiat‐ ing the restart to make sure Apache doesn't die. This is equiva‐ lent to apachectl -k graceful. graceful-stop Gracefully stops the Apache httpd daemon. This differs from a normal stop in that currently open connections are not aborted. A side effect is that old log files will not be closed immedi‐ ately. This is equivalent to apachectl -k graceful-stop. configtest Run a configuration file syntax test. It parses the configura‐ tion files and either reports Syntax Ok or detailed information about the particular syntax error. This is equivalent to apachectl -t. The following option was available in earlier versions but has been removed. startssl To start httpd with SSL support, you should edit your configura‐ tion file to include the relevant directives and then use the normal apachectl start.
パッケージ
apachectl configtest
- httpd -t?