home *** CD-ROM | disk | FTP | other *** search
/ Cricao de Sites - 650 Layouts Prontos / WebMasters.iso / Servidores / apache_2.2.8-win32-x86-no_ssl.msi / Data1.cab / _36E38503F9CEF8E0E75C74A59ED27DD5 < prev    next >
Extensible Markup Language  |  2007-09-01  |  9KB  |  158 lines

  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head><!--
  4.         XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
  5.               This file is generated from xml source: DO NOT EDIT
  6.         XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
  7.       -->
  8. <title>apachectl - Apache HTTP Server Control Interface - Apache HTTP Server</title>
  9. <link href="../style/css/manual.css" rel="stylesheet" media="all" type="text/css" title="Main stylesheet" />
  10. <link href="../style/css/manual-loose-100pc.css" rel="alternate stylesheet" media="all" type="text/css" title="No Sidebar - Default font size" />
  11. <link href="../style/css/manual-print.css" rel="stylesheet" media="print" type="text/css" />
  12. <link href="../images/favicon.ico" rel="shortcut icon" /></head>
  13. <body id="manual-page"><div id="page-header">
  14. <p class="menu"><a href="../mod/">Modules</a> | <a href="../mod/directives.html">Directives</a> | <a href="../faq/">FAQ</a> | <a href="../glossary.html">Glossary</a> | <a href="../sitemap.html">Sitemap</a></p>
  15. <p class="apache">Apache HTTP Server Version 2.2</p>
  16. <img alt="" src="../images/feather.gif" /></div>
  17. <div class="up"><a href="./"><img title="<-" alt="<-" src="../images/left.gif" /></a></div>
  18. <div id="path">
  19. <a href="http://www.apache.org/">Apache</a> > <a href="http://httpd.apache.org/">HTTP Server</a> > <a href="http://httpd.apache.org/docs/">Documentation</a> > <a href="../">Version 2.2</a> > <a href="./">Programs</a></div><div id="page-content"><div id="preamble"><h1>apachectl - Apache HTTP Server Control Interface</h1>
  20. <div class="toplang">
  21. <p><span>Available Languages: </span><a href="../en/programs/apachectl.html" title="English"> en </a> |
  22. <a href="../ko/programs/apachectl.html" hreflang="ko" rel="alternate" title="Korean"> ko </a></p>
  23. </div>
  24.  
  25.      <p><code>apachectl</code> is a front end to the Apache HyperText
  26.      Transfer Protocol (HTTP) server.  It is designed to help the
  27.      administrator control the functioning of the Apache
  28.      <code class="program"><a href="../programs/httpd.html">httpd</a></code> daemon.</p>
  29.  
  30.      <p>The <code>apachectl</code> script can operate in two modes.
  31.      First, it can act as a simple front-end to the <code class="program"><a href="../programs/httpd.html">httpd</a></code>
  32.      command that simply sets any necessary environment variables and
  33.      then invokes <code class="program"><a href="../programs/httpd.html">httpd</a></code>, passing through any command line
  34.      arguments.  Second, <code>apachectl</code> can act as a SysV init
  35.      script, taking simple one-word arguments like <code>start</code>,
  36.      <code>restart</code>, and <code>stop</code>, and translating them
  37.      into appropriate signals to <code class="program"><a href="../programs/httpd.html">httpd</a></code>.</p>
  38.  
  39.      <p>If your Apache installation uses non-standard paths, you will
  40.      need to edit the <code>apachectl</code> script to set the
  41.      appropriate paths to the <code class="program"><a href="../programs/httpd.html">httpd</a></code> binary.  You can also
  42.      specify any necessary <code class="program"><a href="../programs/httpd.html">httpd</a></code> command line arguments.
  43.      See the comments in the script for details.</p>
  44.  
  45.      <p>The <code>apachectl</code> script returns a 0 exit value on
  46.      success, and >0 if an error occurs.  For more details, view
  47.      the comments in the script.</p>
  48. </div>
  49. <div id="quickview"><ul id="toc"><li><img alt="" src="../images/down.gif" /> <a href="#synopsis">Synopsis</a></li>
  50. <li><img alt="" src="../images/down.gif" /> <a href="#options">Options</a></li>
  51. </ul><h3>See also</h3><ul class="seealso"><li><a href="../invoking.html">Starting Apache</a></li><li><a href="../stopping.html">Stopping Apache</a></li><li><a href="../configuring.html">Configuration Files</a></li><li><a href="../platform/">Platform Docs</a></li><li><code class="program"><a href="../programs/httpd.html">httpd</a></code></li></ul></div>
  52. <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
  53. <div class="section">
  54. <h2><a name="synopsis" id="synopsis">Synopsis</a></h2>
  55.  
  56. <p>When acting in pass-through mode, <code>apachectl</code> can take
  57. all the arguments available for the <code class="program"><a href="../programs/httpd.html">httpd</a></code>
  58. binary.</p>
  59.  
  60. <p><code><strong>apachectl</strong> [ <var>httpd-argument</var> ]</code></p>
  61.  
  62. <p>When acting in SysV init mode, <code>apachectl</code> takes simple,
  63. one-word commands, defined below.</p>
  64.  
  65. <p><code><strong>apachectl</strong> <var>command</var></code></p>
  66.  
  67. </div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
  68. <div class="section">
  69. <h2><a name="options" id="options">Options</a></h2>
  70.  
  71. <p>Only the SysV init-style options are defined here.  Other arguments
  72. are defined on the <code class="program"><a href="../programs/httpd.html">httpd</a></code> manual page.</p>
  73.  
  74. <dl>
  75.  
  76. <dt><code>start</code></dt>
  77.  
  78. <dd>Start the Apache <code class="program"><a href="../programs/httpd.html">httpd</a></code> daemon.  Gives an error if it
  79. is already running.  This is equivalent to <code>apachectl -k
  80. start</code>.</dd>
  81.  
  82. <dt><code>stop</code></dt>
  83.  
  84. <dd>Stops the Apache <code class="program"><a href="../programs/httpd.html">httpd</a></code> daemon.  This is equivalent to
  85. <code>apachectl -k stop</code>.</dd>
  86.  
  87. <dt><code>restart</code></dt>
  88.  
  89. <dd>Restarts the Apache <code class="program"><a href="../programs/httpd.html">httpd</a></code> daemon.  If the daemon is
  90. not running, it is started.  This command automatically checks the
  91. configuration files as in <code>configtest</code> before initiating
  92. the restart to make sure the daemon doesn't die.  This is equivalent
  93. to <code>apachectl -k restart</code>.</dd>
  94.  
  95. <dt><code>fullstatus</code></dt>
  96.  
  97. <dd>Displays a full status report from <code class="module"><a href="../mod/mod_status.html">mod_status</a></code>.
  98. For this to work, you need to have <code class="module"><a href="../mod/mod_status.html">mod_status</a></code> enabled
  99. on your server and a text-based browser such as <code>lynx</code>
  100. available on your system.  The URL used to access the status report
  101. can be set by editing the <code>STATUSURL</code> variable in the
  102. script.</dd>
  103.  
  104. <dt><code>status</code></dt>
  105.  
  106. <dd>Displays a brief status report.  Similar to the
  107. <code>fullstatus</code> option, except that the list of requests
  108. currently being served is omitted.</dd>
  109.  
  110. <dt><code>graceful</code></dt>
  111.  
  112. <dd>Gracefully restarts the Apache <code class="program"><a href="../programs/httpd.html">httpd</a></code> daemon.  If the
  113. daemon is not running, it is started.  This differs from a normal
  114. restart in that currently open connections are not aborted.  A side
  115. effect is that old log files will not be closed immediately.  This
  116. means that if used in a log rotation script, a substantial delay may
  117. be necessary to ensure that the old log files are closed before
  118. processing them.  This command automatically checks the configuration
  119. files as in <code>configtest</code> before initiating the
  120. restart to make sure Apache doesn't die.  This is equivalent to
  121. <code>apachectl -k graceful</code>.</dd>
  122.  
  123. <dt><code>graceful-stop</code></dt>
  124.  
  125. <dd>Gracefully stops the Apache <code class="program"><a href="../programs/httpd.html">httpd</a></code> daemon.  
  126. This differs from a normal stop in that currently open connections are not 
  127. aborted.  A side effect is that old log files will not be closed immediately. 
  128. This is equivalent to <code>apachectl -k graceful-stop</code>.</dd>
  129.  
  130. <dt><code>configtest</code></dt>
  131.  
  132. <dd>Run a configuration file syntax test. It parses the configuration
  133. files and either reports <code>Syntax Ok</code>
  134. or detailed information about the particular syntax error.  This is
  135. equivalent to <code>apachectl -t</code>.</dd>
  136.  
  137. </dl>
  138.  
  139. <p>The following option was available in earlier versions but has been removed.</p>
  140.  
  141. <dl>
  142.  
  143. <dt><code>startssl</code></dt>
  144.  
  145. <dd>To start <code class="program"><a href="../programs/httpd.html">httpd</a></code> with SSL support, you should edit
  146. your configuration file to include the relevant directives and then
  147. use the normal <code>apachectl start</code>.</dd>
  148.  
  149. </dl>
  150.  
  151. </div></div>
  152. <div class="bottomlang">
  153. <p><span>Available Languages: </span><a href="../en/programs/apachectl.html" title="English"> en </a> |
  154. <a href="../ko/programs/apachectl.html" hreflang="ko" rel="alternate" title="Korean"> ko </a></p>
  155. </div><div id="footer">
  156. <p class="apache">Copyright 2007 The Apache Software Foundation.<br />Licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.</p>
  157. <p class="menu"><a href="../mod/">Modules</a> | <a href="../mod/directives.html">Directives</a> | <a href="../faq/">FAQ</a> | <a href="../glossary.html">Glossary</a> | <a href="../sitemap.html">Sitemap</a></p></div>
  158. </body></html>