stopping.xml.ko revision 9a58dc6a2b26ec128b1270cf48810e705f1a90db
<?xml version='1.0' encoding='EUC-KR' ?>
<!DOCTYPE manualpage SYSTEM "/style/manualpage.dtd">
<?xml-stylesheet type="text/xsl" href="/style/manual.ko.xsl"?>
<!-- English Revision: 105989:1174747 (outdated) -->
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<manualpage metafile="stopping.xml.meta">
<title>�ߴܰ� �����</title>
<summary>
<p>�� ������ ���н��� �ý��ۿ��� ����ġ�� �ߴ��ϰ� ������ϴ�
������ ����ִ�. �������� NT, 2000, XP ����ڴ� <a
href="platform/windows.html#winsvc">���񽺷� ����ġ
�����ϱ�</a>����, �������� 9x�� ME ����ڴ� <a
href="platform/windows.html#wincons">�ݼ� ���α׷�����
����ġ �����ϱ�</a>���� �÷��� ����ġ ���۹��� �� �� �ִ�.</p>
</summary>
<seealso><a href="programs/httpd.html">httpd</a></seealso>
<seealso><a href="programs/apachectl.html">apachectl</a></seealso>
<section id="introduction"><title>�Ұ�</title>
<p>����ġ�� �ߴ��ϰ� ������Ϸ��� �����ϰ� �ִ�
<code>httpd</code> ���μ����� �ñ׳��� ������ �Ѵ�. �ñ׳���
������ ����� �ΰ�����. �ϳ��� ���н� <code>kill</code>
��ɾ ����Ͽ� ���μ����� ���� �ñ׳��� ������ ����̴�.
�ý��ۿ� ���� <code>httpd</code>�� ���������, <directive
module="mpm_common">PidFile</directive>�� pid�� ��ϵ� �θ�ܿ�
�ٸ� ���μ����� �ñ׳�(signal)�� ������ �ȵȴ�. ��, �θ��̿ܿ�
�ٸ� ���μ����� �ñ׳��� ���� �ʿ䰡 ��ٴ� ���̴�. �θ𿡰�
���� �� �ִ� �ñ׳��� ��������, ���� ������ <code><a
href="#term">TERM</a></code>, <code><a
href="#hup">HUP</a></code>, <code><a
href="#graceful">USR1</a></code>�̴�.</p>
<p>������ ���� �θ𿡰� �ñ׳��� ������:</p>
<example>kill -TERM `cat /usr/local/apache2/logs/httpd.pid`</example>
<p><code>httpd</code> ���μ������� �ñ׳��� ������ �ٸ� �����
����� �ɼ� <code>-k</code>�� ����ϴ� ���̴�. �Ʒ��� ������
<code>stop</code>, <code>restart</code>, <code>graceful</code>��
<a href="programs/httpd.html">httpd</a> ���������� �ƱԸ�Ʈ���̴�.
�׷��� �� �ƱԸ�Ʈ��� <code>httpd</code>�� �����ϴ�, <a
href="programs/apachectl.html">apachectl</a> ��ũ��Ʈ��
����ϱ� ���Ѵ�.</p>
<p><code>httpd</code>�� �ñ׳��� ������, ���� ��ɾ��
�����Ȳ�� �� �� �ִ�:</p>
<example>tail -f /usr/local/apache2/logs/error_log</example>
<p>�� ���� ����� <directive
module="core">ServerRoot</directive>�� <directive
module="mpm_common">PidFile</directive> ������ �˸°� �����϶�.</p>
</section>
<section id="term"><title>���� �ߴ�</title>
<dl><dt>�ñ׳�: TERM</dt>
<dd><code>apachectl -k stop</code></dd>
</dl>
<p><code>TERM</code>�̳� <code>stop</code> �ñ׳��� �θ𿡰�
������ ��� ��� �ڽ��� ���δ�. �ڽ��� ������ ���̴µ���
�� �ʰ� �ɸ� �� �ִ�. �׷��� �θ� �����Ѵ�. ó������ ��û��
�ߴܵǰ�, �� �̻� ��û�� �����ʴ´�.</p>
</section>
<section id="graceful"><title>������ �����</title>
<dl><dt>�ñ׳�: USR1</dt>
<dd><code>apachectl -k graceful</code></dd>
</dl>
<p><code>USR1</code>�̳� <code>graceful</code> �ñ׳���
�θ𿡰� ������ �θ� ���μ����� �ڽĵ鿡�� ���� ��û��
ó������ �����϶�� (Ȥ�� ���� �ƹ��͵� ó������ �ʴٸ�
��� �����϶��) <em>�����Ѵ�</em>. �θ�� ����������
�ٽ��а� �α����ϵ� �ٽ� ����. �ڽ��� ���������� �θ��
���� �ڽĴ�� ���ο� ���� <em>����</em>�� ������ �ڽ���
�����Ͽ� ��� ��û�� ó���ϰ� �Ѵ�.</p>
<note>������ �����(graceful restart)���� <code>USR1</code>��
����� �� ��� �÷����� ��� (<code>WINCH</code>�� ����)
�ٸ� �ñ׳��� ����� �� �ִ�. <code>apachectl graceful</code>��
�÷��� �˸��� �ñ׳��� ������.</note>
<p>������ ������� �׻� MPM�� ���μ��� ���� ���þ� ������
����Ͽ�, ����۵��� Ŭ���̾�Ʈ�� �����ϴ� ���μ����� �����尡
����� ���� �����ϵ��� ����Ǿ��. �Դٰ� <directive
module="mpm_common">StartServers</directive>��, ���� ��
�ּ��� StartServers��ŭ ���ο� �ڽ��� �ȸ�������� �ڽ���
StartServers ���� �ǵ��� ���� �����. ��, ���α׷��� ������
���� ���Ͽ� �˸��� �ڽ��� ������ �����ϸ�,
<directive>StartServers</directive> �Ķ���ͷ� ������ �����
��븦 �����Ѵ�.</p>
<p><module>mod_status</module> ����ڴ� <code>USR1</code>��
������ ���� ��谡 0�� ���� <strong>������</strong> ����
���̴�. ������ ���ο� ��û�� (�ü���� �̵��� ť�� ��Ƽ�
� ��쿡�� �Ҿ������ �ʴ´�) ó������ ���ϴ� �ð���
�ּ�ȭ�ϰ� ����� Ʃ�� �Ķ���͸� �����ϵ��� ���������.
�̸� ���� ���밣 ��� �ڽ��� ����ϴ� <em>scoreboard</em>��
�����Ѵ�.</p>
<p>status ����� ���� ������ ����� �� �����Ͽ� ������
��û�� ó���ϰ� �ִ� �ڽ��� <code>G</code>�� �˷��ش�.</p>
<p>����δ� <code>USR1</code>�� ����ϴ� �α׼�ȯ ��ũ��Ʈ��
������� ��� �ڽ��� �α��ۼ��� ���ƴ��� �� �� �ִ�
����� ���. �츮�� <code>USR1</code> �ñ׳��� ������
����� �ð��� ������ ���� �α׸� �ٷ絵�� �����Ѵ�. ����
��� ���� �뿪�� ������� ��� ���� ��κ��� ��ġ�µ� 10����
�Ȱɸ��ٸ�, ���� �α׸� �ٷ���� 15�� ��ٸ���.</p>
<note>�������Ͽ� ���� �ִٸ� ����۽� �θ�� ���������
�ʰ� ���� ���� �����Ѵ�. ��, ������ ������� ��� �����Ҷ�
�ڽ��� ����ǵ��� ���д�. (�ڽĵ��� �ڽ��� ������ ��û��
ó���ϰ� "���ݰ� �����Ѵ�".) �̴� ������ ������Ҷ�
������ �ȴ�. ������ �ڽ��� ��ٸ� ��Ʈ�� �������� ���Ѵ�.
������� <code>-t</code> ����� �ɼ�(<a
href="programs/httpd.html">httpd</a> ���)���� ��������
������ �˻��� �� �ִ�. �׷��� �̷� �˻絵 ������ �ùٷ�
����������� �������� ���Ѵ�. ���������� ������ �ƴ� �ǹ̸�
�˻��Ϸ��� root�� �ƴ� ����ڷ� <code>httpd</code>�� �����غ� �� �ִ�.
root�� �ƴϱ⶧���� (�ƴϸ� ���� �� ��Ʈ�� ����ϴ�
<code>httpd</code>�� ����DZ⶧����) ���� ��ٸ� ���ϰ�
�α������� ������ �õ��ϴ� �������� ������ ���̴�. �ٸ�
���������� �����Ѵٸ� �Ƹ��� �������Ͽ� ���� ���� ���̴�.
������ ������� �ϱ��� ���� ���ľ��Ѵ�.</note>
</section>
<section id="hup"><title>���� �����</title>
<dl><dt>�ñ׳�: HUP</dt>
<dd><code>apachectl -k restart</code></dd>
</dl>
<p><code>HUP</code>�̳� <code>restart</code> �ñ׳���
�θ𿡰� ������ <code>TERM</code>�� ���� ��� �ڽ���
�������� �θ�� �������� �ʴ´�. �θ�� ���������� �ٽ��а�
�α������� �ٽ� ����. �׸��� ���ο� �ڽĵ��� ����� ���񽺸�
����Ѵ�.</p>
<p><module>mod_status</module> ����ڴ� <code>HUP</code>��
������ ���� ��谡 0�� ���� �� �� �ִ�.</p>
<note>�������Ͽ� ���� �ִٸ� ������� �ص� �θ�� ���������
�ʰ� ���� ���� ������ ���̴�. �̸� ���ϴ� ����� ���� ����϶�.</note>
</section>
<section id="race"><title>�η�: �ñ׳ΰ� ���̽� �����</title>
<p>Apache 1.2b9 ����� ����۰� ���� �ñ׳ο� ����
<em>���̽� �����(race condition)</em>�� �־��. (���̽�
������� ������ �������ڸ�, � ���� �߸�ȶ� �Ͼ��
����Ѵ�� �������� �ʴ� �ð��� �ΰ��� ������.) "�ùٸ�"
����� �ִ� ��Ű���Ŀ��� �츮�� �̷� ������ �ִ��� �ذ��ߴ�.
�׷��� � ��Ű���Ŀ��� ������ ���̽� ������� ��������
�����϶�.</p>
<p><directive module="mpm_common">ScoreBoardFile</directive>��
��ũ�� �����ϴ� ��Ű���Ĵ� scoreboard�� ����Ʈ�� ���ɼ���
�ִ�. �׷��� (<code>HUP</code>��) "bind: Address already in use"
Ȥ�� (<code>USR1</code> ��) "long lost child came home!"��
�߻��� �� �ִ�. ���ڴ� �ɰ��� �����̰�, ���ڴ� ���� ������
scoreboard slot�� �Ұ� �����. �׷��� ���� ������� ���̰�
������ ������� ����ϱ� ��õ�Ѵ�. �� ������ �ذ��ϱ� �ſ�
����. �׷��� �������� ��κ��� ��Ű���Ĵ� scoreboard�� ������
������� �ʴ´�. ������ ����ϴ� ��Ű���Ķ�� <directive
module="mpm_common">ScoreBoardFile</directive> ������ ����϶�.</p>
<p>��� ��Ű���Ŀ��� ���ӵǴ� HTTP ���� (KeepAlive)����
�ι�° ���� ��û�� ó���ϴ� �ڽĿ� �ణ�� ���̽� �������
�ִ�. �ڽ��� ��û���� ���� �� ��û ����� �б��� ������ ��
�ִ�. �� ������ �ʹ� �ʰ� �߰��Ͽ� 1.2 ������ �����Ŀ���
�����Ǿ��. �׷��� ��Ʈ�� �����̳� ���� �ð����Ѷ����� KeepAlive
Ŭ���̾�Ʈ�� �̷� ��츦 �����ؾ��ϱ� ������ �̷л� ������
�ȵȴ�. ������ ������ �˻��ϱ����� ���ʿ� 20�� ������ϴ� ����
Ŭ���̾�Ʈ�� ���� �׸��̳� �� �������� ����Ʈ�� ����������
�о���̱� ������� �ʴ´ٸ� ������ �ȵȴ�.</p>
</section>
</manualpage>