invoking.html.ko.euc-kr 10.9 KB
Newer Older
powelld's avatar
powelld committed
<?xml version="1.0" encoding="EUC-KR"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="ko" xml:lang="ko"><head>
<meta content="text/html; charset=EUC-KR" http-equiv="Content-Type" />
<!--
        XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
              This file is generated from xml source: DO NOT EDIT
        XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
      -->
<title>아파치 시작 - Apache HTTP Server Version 2.4</title>
<link href="./style/css/manual.css" rel="stylesheet" media="all" type="text/css" title="Main stylesheet" />
<link href="./style/css/manual-loose-100pc.css" rel="alternate stylesheet" media="all" type="text/css" title="No Sidebar - Default font size" />
<link href="./style/css/manual-print.css" rel="stylesheet" media="print" type="text/css" /><link rel="stylesheet" type="text/css" href="./style/css/prettify.css" />
<script src="./style/scripts/prettify.min.js" type="text/javascript">
</script>

<link href="./images/favicon.ico" rel="shortcut icon" /></head>
<body id="manual-page"><div id="page-header">
<p class="menu"><a href="./mod/">모듈</a> | <a href="./mod/directives.html">지시어들</a> | <a href="http://wiki.apache.org/httpd/FAQ">FAQ</a> | <a href="./glossary.html">용어</a> | <a href="./sitemap.html">사이트맵</a></p>
<p class="apache">Apache HTTP Server Version 2.4</p>
<img alt="" src="./images/feather.png" /></div>
<div class="up"><a href="./"><img title="&lt;-" alt="&lt;-" src="./images/left.gif" /></a></div>
<div id="path">
<a href="http://www.apache.org/">Apache</a> &gt; <a href="http://httpd.apache.org/">HTTP Server</a> &gt; <a href="http://httpd.apache.org/docs/">Documentation</a> &gt; <a href="./">Version 2.4</a></div><div id="page-content"><div id="preamble"><h1>아파치 시작</h1>
<div class="toplang">
<p><span>가능한 언어: </span><a href="./de/invoking.html" hreflang="de" rel="alternate" title="Deutsch">&nbsp;de&nbsp;</a> |
<a href="./en/invoking.html" hreflang="en" rel="alternate" title="English">&nbsp;en&nbsp;</a> |
<a href="./es/invoking.html" hreflang="es" rel="alternate" title="Espa&#241;ol">&nbsp;es&nbsp;</a> |
<a href="./fr/invoking.html" hreflang="fr" rel="alternate" title="Fran&#231;ais">&nbsp;fr&nbsp;</a> |
<a href="./ja/invoking.html" hreflang="ja" rel="alternate" title="Japanese">&nbsp;ja&nbsp;</a> |
<a href="./ko/invoking.html" title="Korean">&nbsp;ko&nbsp;</a> |
<a href="./tr/invoking.html" hreflang="tr" rel="alternate" title="T&#252;rk&#231;e">&nbsp;tr&nbsp;</a></p>
</div>
<div class="outofdate">이 문서는 최신판 번역이 아닙니다.
            최근에 변경된 내용은 영어 문서를 참고하세요.</div>

    <p>보통 아파치는 Windows NT, 2000, XP에서는 서비스로,
    Windows 95과 ME에서는 콘솔 프로그램으로 실행된다. 자세한
    내용은 <a href="platform/windows.html#winsvc">서비스로
    아파치를 실행하기</a><a href="platform/windows.html#wincons">콘솔 프로그램으로
    아파치를 실행하기</a>.</p>

    <p>유닉스에서 <a href="programs/httpd.html">httpd</a>
    프로그램은 백그라운드에서 계속 요청을 처리하는 데몬으로
    실행된다. 이 문서는 <code>httpd</code>를 시작하는 방법을
    설명한다.</p>
</div>
<div id="quickview"><a href="https://www.apache.org/foundation/contributing.html" class="badge"><img src="https://www.apache.org/images/SupportApache-small.png" alt="Support Apache!" /></a><ul id="toc"><li><img alt="" src="./images/down.gif" /> <a href="#startup">어떻게 아파치가 시작하나</a></li>
<li><img alt="" src="./images/down.gif" /> <a href="#errors">시작중 오류</a></li>
<li><img alt="" src="./images/down.gif" /> <a href="#boot">부팅할때 시작하기</a></li>
<li><img alt="" src="./images/down.gif" /> <a href="#info">추가 정보</a></li>
</ul><h3>참고</h3><ul class="seealso"><li><a href="stopping.html">아파치 중단과 재시작</a></li><li><a href="programs/httpd.html">httpd</a></li><li><a href="programs/apachectl.html">apachectl</a></li><li><a href="#comments_section">Comments</a></li></ul></div>
<div class="top"><a href="#page-header"><img alt="top" src="./images/up.gif" /></a></div>
<div class="section">
<h2><a name="startup" id="startup">어떻게 아파치가 시작하나</a></h2>

    <p>설정파일에서 <code class="directive"><a href="./mod/mpm_common.html#listen">Listen</a></code>이 기본값인 80(혹은
    1024이하의 다른 포트)이라면 이 특권 포트에 연결하기위해
    root 권한이 필요하다. 서버는 시작하여 로그파일을 여는 등의
    몇몇 기초적인 작업을 마친후, 클라이언트의 요청을 기다리고
    응답하는 <em>자식(child)</em> 프로세스를 여러개 띄운다.
<code>httpd</code> 프로세스는 계속 root 사용자로 실행되지만,
    자식 프로세스들은 더 권한이 작은 사용자로 실행된다. 이는
    선택한 <a href="mpm.html">다중처리 모듈</a>로 조정한다.</p>

    <p><a href="programs/apachectl.html">apachectl</a>
    스크립트를 사용하여 <code>httpd</code> 실행파일을 시작하길
    권장한다. 이 스크립트는 <code>httpd</code>가 몇몇
    운영체제에서 정상적으로 동작하기위해 필요한 환경변수들을
    설정하고 <code>httpd</code> 실행파일을 시작한다.
    <code>apachectl</code>은 명령행 아규먼트를 그대로 넘기기때문에,
    <code>httpd</code>의 어떤 옵션이라도 <code>apachectl</code>
    사용가능하다. 또, <code>apachectl</code> 스크립트의 앞부분에
    나오는 <code>HTTPD</code> 변수를 <code>httpd</code> 실행파일이
    있는 위치와 <em>항상</em> 사용할 명령행 아규먼트로 직접
    수정할 수 있다.</p>

    <p><code>httpd</code>를 실행하면 먼저 <a href="configuring.html">설정파일</a> <code>httpd.conf</code>
    찾아서 읽는다. 이 파일의 위치는 컴파일 중에 지정하나, 실행시
    다음과 같이 <code>-f</code> 명령행 옵션으로 지정할 수도 있다.</p>

<div class="example"><p><code>/usr/local/apache2/bin/apachectl -f
      /usr/local/apache2/conf/httpd.conf</code></p></div>

    <p>시작하는 과정에서 문제가 없다면, 서버는 터미널에서
    떨어지고 명령 프롬프트가 거의 즉시 나오게된다. 이는 서버가
    실행됨을 의미한다. 브라우저로 서버에 연결하여 <code class="directive"><a href="./mod/core.html#documentroot">DocumentRoot</a></code> 디렉토리에 있는
    테스트 페이지와 그 페이지에 링크된 (로컬카피) 설명서를 볼
    수 있다.</p>
</div><div class="top"><a href="#page-header"><img alt="top" src="./images/up.gif" /></a></div>
<div class="section">
<h2><a name="errors" id="errors">시작중 오류</a></h2>

    <p>아파치가 시작하는 과정중에 심각한 문제가 발생하면,
    종료하기 전에 문제를 알리는 문구를 콘솔이나 <code class="directive"><a href="./mod/core.html#errorlog">ErrorLog</a></code>에 쓴다. 가장 흔한 오류문 중
    하나는 "<code>Unable to bind to Port ...</code>"이다.
    이 메세지는 보통 다음 두 경우에 발생한다:</p>

    <ul>
      <li>root 사용자로 로그인하지 않고 특권 포트에 서버를
      시작하려 한 경우. 혹은</li>

      <li>이미 아파치나 다른 웹서버가 사용중인 포트에
      서버를 시작하려 한 경우.</li>
    </ul>

    <p>기타 문제해결 방법은 아파치 <a href="faq/">FAQ</a>
    참고하라.</p>
</div><div class="top"><a href="#page-header"><img alt="top" src="./images/up.gif" /></a></div>
<div class="section">
<h2><a name="boot" id="boot">부팅할때 시작하기</a></h2>

    <p>시스템이 재시작한 후에도 서버가 계속 실행되길 바란다면,
    시스템 시작파일(보통 <code>rc.local</code>이나 <code>rc.N</code>
    디렉토리에 있는 파일)에 <code>apachectl</code>을 추가해야
    한다. 이 경우 아파치는 root로 시작된다. 이전에 서버의 보안이나
    접근 제한(파일권한)이 올바로 설정되었는지 확인하라.</p>

    <p><code>apachectl</code>은 표준 SysV init 스크립트와 비슷하게
    동작하도록 만들어졌다. 스크립트는 아규먼트로 <code>start</code>,
    <code>restart</code>, <code>stop</code>을 받으면 각각 적절한
    시그널을 <code>httpd</code>에 보낸다. 그래서 보통은
    <code>apachectl</code>을 적절한 init 디렉토리로 링크를 걸면된다.
    그러나 사용하는 시스템의 정확한 요구사항을 확인하라.</p>
</div><div class="top"><a href="#page-header"><img alt="top" src="./images/up.gif" /></a></div>
<div class="section">
<h2><a name="info" id="info">추가 정보</a></h2>

    <p><a href="programs/httpd.html">httpd</a><a href="programs/apachectl.html">apachectl</a>, 기타 서버에
    포함된 지원 프로그램들의 명령행 옵션은
    <a href="programs/">서버와 지원 프로그램</a> 페이지를
    참고하라. 또 아파치 배포본에는 모든 <a href="mod/">모듈</a>
    그들이 제공하는 <a href="mod/directives.html">지시어</a>
    대한 문서가 있다.</p>
</div></div>
<div class="bottomlang">
<p><span>가능한 언어: </span><a href="./de/invoking.html" hreflang="de" rel="alternate" title="Deutsch">&nbsp;de&nbsp;</a> |
<a href="./en/invoking.html" hreflang="en" rel="alternate" title="English">&nbsp;en&nbsp;</a> |
<a href="./es/invoking.html" hreflang="es" rel="alternate" title="Espa&#241;ol">&nbsp;es&nbsp;</a> |
<a href="./fr/invoking.html" hreflang="fr" rel="alternate" title="Fran&#231;ais">&nbsp;fr&nbsp;</a> |
<a href="./ja/invoking.html" hreflang="ja" rel="alternate" title="Japanese">&nbsp;ja&nbsp;</a> |
<a href="./ko/invoking.html" title="Korean">&nbsp;ko&nbsp;</a> |
<a href="./tr/invoking.html" hreflang="tr" rel="alternate" title="T&#252;rk&#231;e">&nbsp;tr&nbsp;</a></p>
</div><div class="top"><a href="#page-header"><img src="./images/up.gif" alt="top" /></a></div><div class="section"><h2><a id="comments_section" name="comments_section">Comments</a></h2><div class="warning"><strong>Notice:</strong><br />This is not a Q&amp;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 <a href="http://httpd.apache.org/lists.html">mailing lists</a>.</div>
<script type="text/javascript"><!--//--><![CDATA[//><!--
var comments_shortname = 'httpd';
var comments_identifier = 'http://httpd.apache.org/docs/2.4/invoking.html';
(function(w, d) {
    if (w.location.hostname.toLowerCase() == "httpd.apache.org") {
        d.write('<div id="comments_thread"><\/div>');
        var s = d.createElement('script');
        s.type = 'text/javascript';
        s.async = true;
        s.src = 'https://comments.apache.org/show_comments.lua?site=' + comments_shortname + '&page=' + comments_identifier;
        (d.getElementsByTagName('head')[0] || d.getElementsByTagName('body')[0]).appendChild(s);
    }
    else { 
        d.write('<div id="comments_thread">Comments are disabled for this page at the moment.<\/div>');
    }
})(window, document);
//--><!]]></script></div><div id="footer">
<p class="apache">Copyright 2017 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>
<p class="menu"><a href="./mod/">모듈</a> | <a href="./mod/directives.html">지시어들</a> | <a href="http://wiki.apache.org/httpd/FAQ">FAQ</a> | <a href="./glossary.html">용어</a> | <a href="./sitemap.html">사이트맵</a></p></div><script type="text/javascript"><!--//--><![CDATA[//><!--
if (typeof(prettyPrint) !== 'undefined') {
    prettyPrint();
}
//--><!]]></script>
</body></html>