<-
Apache > HTTP Server > Documentation > Version 2.4

�ߴܰ� �����

������ ���:  de  |  en  |  es  |  fr  |  ja  |  ko  |  tr 

�� ������ �ֽ��� ������ �ƴմϴ�. �ֱٿ� ����� ������ ���� ������ �����ϼ���.

�� ������ ���н��� �ý��ۿ��� ����ġ�� �ߴ��ϰ� ������ϴ� ������ ����ִ�. �������� NT, 2000, XP ����ڴ� ���񽺷� ����ġ �����ϱ�����, �������� 9x�� ME ����ڴ� �ݼ� ���α׷����� ����ġ �����ϱ����� �÷����� ����ġ ���۹��� �� �� �ִ�.

Support Apache!

����

top

�Ұ�

����ġ�� �ߴ��ϰ� ������Ϸ��� �����ϰ� �ִ� httpd ���μ����� �ñ׳��� ������ �Ѵ�. �ñ׳��� ������ ����� �ΰ�����. �ϳ��� ���н� kill ���ɾ ����Ͽ� ���μ����� ���� �ñ׳��� ������ ����̴�. �ý��ۿ� ���� httpd�� ���������, PidFile�� pid�� ��ϵ� �θ�ܿ� �ٸ� ���μ����� �ñ׳�(signal)�� ������ �ȵȴ�. ��, �θ��̿ܿ� �ٸ� ���μ����� �ñ׳��� ���� �ʿ䰡 ���ٴ� ���̴�. �θ𿡰� ���� �� �ִ� �ñ׳��� ��������, ���� ������ TERM, HUP, USR1�̴�.

������ ���� �θ𿡰� �ñ׳��� ������:

kill -TERM `cat /usr/local/apache2/logs/httpd.pid`

httpd ���μ������� �ñ׳��� ������ �ٸ� ����� ������ �ɼ� -k�� ����ϴ� ���̴�. �Ʒ��� ������ stop, restart, graceful�� httpd ���������� �ƱԸ�Ʈ���̴�. �׷��� �� �ƱԸ�Ʈ��� httpd�� �����ϴ�, apache2ctl ��ũ��Ʈ�� ����ϱ� ���Ѵ�.

httpd�� �ñ׳��� ������, ���� ���ɾ�� �����Ȳ�� �� �� �ִ�:

tail -f /usr/local/apache2/logs/error_log

�� ���� ����� ServerRoot�� PidFile ������ �˸°� �����϶�.

top

���� �ߴ�

�ñ׳�: TERM
apache2ctl -k stop

TERM�̳� stop �ñ׳��� �θ𿡰� ������ ��� ��� �ڽ��� ���δ�. �ڽ��� ������ ���̴µ��� �� �ʰ� �ɸ� �� �ִ�. �׷��� �θ� �����Ѵ�. ó������ ��û�� �ߴܵǰ�, �� �̻� ��û�� �����ʴ´�.

top

������ �����

�ñ׳�: USR1
apache2ctl -k graceful

USR1�̳� graceful �ñ׳��� �θ𿡰� ������ �θ� ���μ����� �ڽĵ鿡�� ���� ��û�� ó������ �����϶�� (Ȥ�� ���� �ƹ��͵� ó������ �ʴٸ� ��� �����϶��) �����Ѵ�. �θ�� ���������� �ٽ��а� �α����ϵ� �ٽ� ����. �ڽ��� ���������� �θ�� ���� �ڽĴ�� ���ο� ���� ������ ������ �ڽ��� �����Ͽ� ��� ��û�� ó���ϰ� �Ѵ�.

������ �����(graceful restart)���� USR1�� ����� �� ���� �÷��������� ��� (WINCH�� ����) �ٸ� �ñ׳��� ����� �� �ִ�. apache2ctl graceful�� �÷����� �˸��� �ñ׳��� ������.

������ ������� �׻� MPM�� ���μ��� ���� ���þ� ������ �����Ͽ�, ����۵��� Ŭ���̾�Ʈ�� �����ϴ� ���μ����� �����尡 ������ ���� �����ϵ��� ����Ǿ���. �Դٰ� StartServers��, ���� �� �ּ��� StartServers��ŭ ���ο� �ڽ��� �ȸ�������� �ڽ��� StartServers ���� �ǵ��� ���� �����. ��, ���α׷��� ������ ���� ���Ͽ� �˸��� �ڽ��� ������ �����ϸ�, StartServers �Ķ���ͷ� ������ ����� ��븦 �����Ѵ�.

mod_status ����ڴ� USR1�� ������ ���� ��谡 0�� ���� ������ ���� ���̴�. ������ ���ο� ��û�� (�ü���� �̵��� ť�� ��Ƽ� � ��쿡�� �Ҿ������ �ʴ´�) ó������ ���ϴ� �ð��� �ּ�ȭ�ϰ� ����� Ʃ�� �Ķ���͸� �����ϵ��� ���������. �̸� ���� ���밣 ��� �ڽ��� ����ϴ� scoreboard�� �����Ѵ�.

status ����� ���� ������ ����� ���� �����Ͽ� ������ ��û�� ó���ϰ� �ִ� �ڽ��� G�� �˷��ش�.

����δ� USR1�� ����ϴ� �α׼�ȯ ��ũ��Ʈ�� ��������� ��� �ڽ��� �α��ۼ��� ���ƴ��� �� �� �ִ� ����� ����. �츮�� USR1 �ñ׳��� ������ ������ �ð��� ������ ���� �α׸� �ٷ絵�� �����Ѵ�. ���� ��� ���� �뿪�� ������� ��� ���� ��κ��� ��ġ�µ� 10���� �Ȱɸ��ٸ�, ���� �α׸� �ٷ������ 15�� ��ٸ���.

�������Ͽ� ������ �ִٸ� ����۽� �θ�� ��������� �ʰ� ������ ���� �����Ѵ�. ��, ������ ������� ��� �����Ҷ� �ڽ��� ����ǵ��� ���д�. (�ڽĵ��� �ڽ��� ������ ��û�� ó���ϰ� "���ݰ� �����Ѵ�".) �̴� ������ ������Ҷ� ������ �ȴ�. ������ �ڽ��� ��ٸ� ��Ʈ�� �������� ���Ѵ�. ��������� -t ������ �ɼ�(httpd ����)���� �������� ������ �˻��� �� �ִ�. �׷��� �̷� �˻絵 ������ �ùٷ� ����������� �������� ���Ѵ�. ���������� ������ �ƴ� �ǹ̸� �˻��Ϸ��� root�� �ƴ� ����ڷ� httpd�� �����غ� �� �ִ�. root�� �ƴϱ⶧���� (�ƴϸ� ���� �� ��Ʈ�� ����ϴ� httpd�� ����DZ⶧����) ������ ���ٸ� ���ϰ� �α������� ������ �õ��ϴ� �������� ������ ���̴�. �ٸ� ���������� �����Ѵٸ� �Ƹ��� �������Ͽ� ������ ���� ���̴�. ������ ������� �ϱ����� ������ ���ľ��Ѵ�.
top

���� �����

�ñ׳�: HUP
apache2ctl -k restart

HUP�̳� restart �ñ׳��� �θ𿡰� ������ TERM�� ���� ��� �ڽ��� �������� �θ�� �������� �ʴ´�. �θ�� ���������� �ٽ��а� �α������� �ٽ� ����. �׸��� ���ο� �ڽĵ��� ����� ���񽺸� ����Ѵ�.

mod_status ����ڴ� HUP�� ������ ���� ��谡 0�� ���� �� �� �ִ�.

�������Ͽ� ������ �ִٸ� ������� �ص� �θ�� ��������� �ʰ� ������ ���� ������ ���̴�. �̸� ���ϴ� ����� ���� �����϶�.
top

�η�: �ñ׳ΰ� ���̽� �����

Apache 1.2b9 �������� ����۰� ���� �ñ׳ο� ����� ���̽� �����(race condition)�� �־���. (���̽� ������� ������ �������ڸ�, � ���� �߸��ȶ� �Ͼ�� ����Ѵ�� �������� �ʴ� �ð��� �ΰ��� ������.) "�ùٸ�" ����� �ִ� ��Ű���Ŀ��� �츮�� �̷� ������ �ִ��� �ذ��ߴ�. �׷��� � ��Ű���Ŀ��� ������ ���̽� ������� �������� �����϶�.

ScoreBoardFile�� ��ũ�� �����ϴ� ��Ű���Ĵ� scoreboard�� ����Ʈ�� ���ɼ��� �ִ�. �׷��� (HUP��) "bind: Address already in use" Ȥ�� (USR1 ��) "long lost child came home!"�� �߻��� �� �ִ�. ���ڴ� �ɰ��� �����̰�, ���ڴ� ���� ������ scoreboard slot�� �Ұ� �����. �׷��� ���� ������� ���̰� ������ ������� ����ϱ� ��õ�Ѵ�. �� ������ �ذ��ϱ� �ſ� �����. �׷��� �������� ��κ��� ��Ű���Ĵ� scoreboard�� ������ ������� �ʴ´�. ������ ����ϴ� ��Ű���Ķ�� ScoreBoardFile ������ �����϶�.

��� ��Ű���Ŀ��� ���ӵǴ� HTTP ���� (KeepAlive)���� �ι�° ���� ��û�� ó���ϴ� �ڽĿ� �ణ�� ���̽� ������� �ִ�. �ڽ��� ��û���� ���� �� ��û ����� �б����� ������ �� �ִ�. �� ������ �ʹ� �ʰ� �߰��Ͽ� 1.2 ������ �����Ŀ��� �����Ǿ���. �׷��� ��Ʈ�� �����̳� ���� �ð����Ѷ����� KeepAlive Ŭ���̾�Ʈ�� �̷� ��츦 �����ؾ��ϱ� ������ �̷л� ������ �ȵȴ�. ������ ������ �˻��ϱ����� ���ʿ� 20�� ������ϴ� ���� Ŭ���̾�Ʈ�� ���� �׸��̳� �� �������� ����Ʈ�� ���������� �о���̱� ������� �ʴ´ٸ� ������ �ȵȴ�.

������ ���:  de  |  en  |  es  |  fr  |  ja  |  ko  |  tr 

top

Comments

Notice:
This is not a Q&A section. Comments placed here should be pointed towards suggestions on improving the documentation or server, and may be removed again by our moderators if they are either implemented or considered invalid/off-topic. Questions on how to manage the Apache HTTP Server should be directed at either our IRC channel, #httpd, on Freenode, or sent to our mailing lists.