1 <?xml version="1.0" encoding="EUC-KR"?>
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="ko" xml:lang="ko"><head><!--
4 XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
5 This file is generated from xml source: DO NOT EDIT
6 XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
8 <title>apxs - APache eXtenSion µµ±¸ - 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" /><link rel="stylesheet" type="text/css" href="../style/css/prettify.css" />
12 <script src="../style/scripts/prettify.js" type="text/javascript">
15 <link href="../images/favicon.ico" rel="shortcut icon" /></head>
16 <body id="manual-page"><div id="page-header">
17 <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>
18 <p class="apache">Apache HTTP Server Version 2.5</p>
19 <img alt="" src="../images/feather.gif" /></div>
20 <div class="up"><a href="./"><img title="<-" alt="<-" src="../images/left.gif" /></a></div>
22 <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.5</a> > <a href="./">Programs</a></div><div id="page-content"><div id="preamble"><h1>apxs - APache eXtenSion µµ±¸</h1>
24 <p><span>°¡´ÉÇÑ ¾ð¾î: </span><a href="../en/programs/apxs.html" hreflang="en" rel="alternate" title="English"> en </a> |
25 <a href="../ko/programs/apxs.html" title="Korean"> ko </a> |
26 <a href="../tr/programs/apxs.html" hreflang="tr" rel="alternate" title="Türkçe"> tr </a></p>
28 <div class="outofdate">ÀÌ ¹®¼´Â ÃÖ½ÅÆÇ ¹ø¿ªÀÌ ¾Æ´Õ´Ï´Ù.
29 ÃÖ±Ù¿¡ º¯°æµÈ ³»¿ëÀº ¿µ¾î ¹®¼¸¦ Âü°íÇϼ¼¿ä.</div>
31 <p><code>apxs</code>´Â ¾ÆÆÄÄ¡ ÇÏÀÌÆÛÅؽºÆ® Àü¼Û ÇÁ·ÎÅäÄÝ
32 (HTTP) ¼¹öÀÇ È®Àå¸ðµâÀ» ÄÄÆÄÀÏÇÏ°í ¼³Ä¡ÇÏ´Â µµ±¸ÀÌ´Ù. ÀÌ
33 µµ±¸´Â ¿©·¯ ¼Ò½º¿Í ¿ÀºêÁ§Æ®<var>ÆÄÀÏ</var>À» °¡Áö°í,
34 <code class="module"><a href="../mod/mod_so.html">mod_so</a></code>ÀÇ <code class="directive"><a href="../mod/mod_so.html#loadmodule">LoadModule</a></code> Áö½Ã¾î·Î ½ÇÇàÁß¿¡
35 ¾ÆÆÄÄ¡ ¼¹ö·Î ÀоîµéÀÏ ¼ö ÀÖ´Â µ¿Àû°øÀ¯°´Ã¼(DSO)¸¦ ¸¸µç´Ù.</p>
37 <p>±×·¡¼ ÀÌ·± È®Àå¹æ½ÄÀ» »ç¿ëÇÏ·Á¸é Ç÷¡ÆûÀÌ DSO ±â´ÉÀ»
38 Áö¿øÇÏ°í ¾ÆÆÄÄ¡ <code>httpd</code> ½ÇÇàÆÄÀÏÀ»
39 <code class="module"><a href="../mod/mod_so.html">mod_so</a></code> ¸ðµâ°ú °°ÀÌ ÄÄÆÄÀÏÇØ¾ß ÇÑ´Ù.
40 <code>apxs</code> µµ±¸´Â ÀÌ Á¶°ÇÀÌ ¸¸Á·ÇÏÁö¾ÊÀ¸¸é ½ÇÇàÇÏÁö
41 ¾Ê´Â´Ù. Á÷Á¢ ¸í·É¾î¸¦ ½ÇÇàÇÏ¿© Á¶°ÇÀÌ ¸¸Á·ÇÏ´ÂÁö ¾Ë¾Æº¼
44 <div class="example"><p><code>
48 <p>¸ñ·Ï¿¡ <code class="module"><a href="../mod/mod_so.html">mod_so</a></code> ¸ðµâÀÌ ³ª¿Í¾ß ÇÑ´Ù. Á¶°ÇÀ»
49 ¸¸Á·Çϸé <code>apxs</code> µµ±¸·Î DSO ¸ðµâÀ» ¼³Ä¡ÇÏ¿©
50 ¾ÆÆÄÄ¡¼¹öÀÇ ±â´ÉÀ» ½±°Ô È®ÀåÇÒ ¼ö ÀÖ´Ù:</p>
52 <div class="example"><p><code>
53 $ apxs -i -a -c mod_foo.c<br />
54 gcc -fpic -DSHARED_MODULE -I/path/to/apache/include -c mod_foo.c<br />
55 ld -Bshareable -o mod_foo.so mod_foo.o<br />
56 cp mod_foo.so /path/to/apache/modules/mod_foo.so<br />
57 chmod 755 /path/to/apache/modules/mod_foo.so<br />
58 [activating module `foo' in /path/to/apache/etc/httpd.conf]<br />
59 $ apachectl restart<br />
60 /path/to/apache/sbin/apachectl restart: httpd not running, trying to start<br />
61 [Tue Mar 31 11:27:55 1998] [debug] mod_so.c(303): loaded module foo_module<br />
62 /path/to/apache/sbin/apachectl restart: httpd started<br />
66 <p>¾Æ±Ô¸ÕÆ® <var>files</var>¿¡´Â C ¼Ò½ºÆÄÀÏ (.c) À̳ª
67 ¿ÀºêÁ§Æ®ÆÄÀÏ (.o), ¶óÀ̺귯¸®¸ðÀ½ (.a)À» »ç¿ëÇÒ ¼ö ÀÖ´Ù.
68 <code>apxs</code> µµ±¸´Â È®ÀåÀÚ¸¦ º¸°í ÀÚµ¿À¸·Î C ¼Ò½ºÆÄÀÏÀº
69 ÄÄÆÄÀÏÇÏ°í, ¿ÀºêÁ§Æ®¿Í ¸ðÀ½ÆÄÀÏÀº ¸µÅ©¿¡¸¸ »ç¿ëÇÑ´Ù. ±×·¯³ª
70 ÄÄÆÄÀÏÇÑ ¿ÀºêÁ§Æ®¸¦ »ç¿ëÇÏ·Á¸é µ¿ÀûÀ¸·Î ÀоîµéÀÏ ¼ö ÀÖ´Â
71 °øÀ¯°´Ã¼·Î »ç¿ëÇϱâÀ§ÇØ ¹Ýµå½Ã ¿ÀºêÁ§Æ®¸¦ À§Ä¡µ¶¸³ÄÚµå(PIC,
72 position independent code)·Î ÄÄÆÄÀÏÇØ¾ß ÇÑ´Ù. GCCÀÇ °æ¿ì
73 <code>-fpic</code>À» »ç¿ëÇÏ¸é µÈ´Ù. ´Ù¸¥ C ÄÄÆÄÀÏ·¯´Â ¼³¸í¼¸¦
74 Âü°íÇϰųª <code>apxs</code>°¡ ¿ÀºêÁ§Æ®ÆÄÀÏÀ» ÄÄÆÄÀÏÇÒ¶§
75 »ç¿ëÇÏ´Â ¿É¼ÇÀ» Âü°íÇ϶ó.</p>
77 <p>¾ÆÆÄÄ¡ÀÇ DSO Áö¿ø¿¡ ´ëÇÑ ´õ ÀÚ¼¼ÇÑ ³»¿ëÀº
78 <code class="module"><a href="../mod/mod_so.html">mod_so</a></code> ¹®¼¸¦ Âü°íÇϰųª
79 <code>src/modules/standard/mod_so.c</code> ¼Ò½ºÆÄÀÏÀ» ÀоîºÁ¶ó.</p>
81 <div id="quickview"><ul id="toc"><li><img alt="" src="../images/down.gif" /> <a href="#synopsis">°³¿ä</a></li>
82 <li><img alt="" src="../images/down.gif" /> <a href="#options">¿É¼Ç</a></li>
83 <li><img alt="" src="../images/down.gif" /> <a href="#examples">¿¹Á¦</a></li>
84 </ul><h3>Âü°í</h3><ul class="seealso"><li><a href="apachectl.html">apachectl</a></li><li><a href="httpd.html">httpd</a></li></ul><ul class="seealso"><li><a href="#comments_section">Comments</a></li></ul></div>
85 <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
87 <h2><a name="synopsis" id="synopsis">°³¿ä</a></h2>
88 <p><code><strong>apxs</strong> -<strong>g</strong>
89 [ -<strong>S</strong> <var>name</var>=<var>value</var> ]
90 -<strong>n</strong> <var>modname</var></code></p>
92 <p><code><strong>apxs</strong> -<strong>q</strong>
93 [ -<strong>S</strong> <var>name</var>=<var>value</var> ]
94 <var>query</var> ...</code></p>
96 <p><code><strong>apxs</strong> -<strong>c</strong>
97 [ -<strong>S</strong> <var>name</var>=<var>value</var> ]
98 [ -<strong>o</strong> <var>dsofile</var> ]
99 [ -<strong>I</strong> <var>incdir</var> ]
100 [ -<strong>D</strong> <var>name</var>=<var>value</var> ]
101 [ -<strong>L</strong> <var>libdir</var> ]
102 [ -<strong>l</strong> <var>libname</var> ]
103 [ -<strong>Wc,</strong><var>compiler-flags</var> ]
104 [ -<strong>Wl,</strong><var>linker-flags</var> ]
105 <var>files</var> ...</code></p>
107 <p><code><strong>apxs</strong> -<strong>i</strong>
108 [ -<strong>S</strong> <var>name</var>=<var>value</var> ]
109 [ -<strong>n</strong> <var>modname</var> ]
110 [ -<strong>a</strong> ]
111 [ -<strong>A</strong> ]
112 <var>dso-file</var> ...</code></p>
114 <p><code><strong>apxs</strong> -<strong>e</strong>
115 [ -<strong>S</strong> <var>name</var>=<var>value</var> ]
116 [ -<strong>n</strong> <var>modname</var> ]
117 [ -<strong>a</strong> ]
118 [ -<strong>A</strong> ]
119 <var>dso-file</var> ...</code></p>
120 </div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
121 <div class="section">
122 <h2><a name="options" id="options">¿É¼Ç</a></h2>
123 <h3><a name="options.common" id="options.common">°øÅë ¿É¼Ç</a></h3>
125 <dt><code>-n <var>modname</var></code></dt>
126 <dd><code>-i</code> (install)°ú <code>-g</code> (template
127 generation) ¿É¼ÇÀ» »ç¿ëÇÒ¶§ Á÷Á¢ ¸ðµâ¸íÀ» ÁöÁ¤ÇÑ´Ù. ÀÌ
128 ¿É¼ÇÀ» »ç¿ëÇÏ¿© ¸ðµâ¸íÀ» Á÷Á¢ ÁöÁ¤ÇÑ´Ù. <code>-g</code>
129 ¿É¼ÇÀ» »ç¿ëÇÑ´Ù¸é ÀÌ ¿É¼ÇÀ» ¹Ýµå½Ã »ç¿ëÇؾßÇÏ°í,
130 <code>-i</code> ¿É¼ÇÀ» »ç¿ëÇÑ´Ù¸é <code>apxs</code> µµ±¸´Â
131 ¼Ò½º³ª (¸¶Áö¸· ½Ãµµ·Î) ÆÄÀϸíÀ» °¡Áö°í À̸§À» ÃßÃøÇÑ´Ù.</dd>
135 <h3><a name="options.query" id="options.query">ÁúÀÇ ¿É¼Ç</a></h3>
137 <dt><code>-q</code></dt>
138 <dd><code>apxs</code>ÀÇ ¼³Á¤°ªÀ» ¾Ë¾Æ³½´Ù. <var>query</var>¿¡´Â
139 ´ÙÀ½À» »ç¿ëÇÒ ¼ö ÀÖ´Ù: <code>CC</code>, <code>CFLAGS</code>,
140 <code>CFLAGS_SHLIB</code>, <code>INCLUDEDIR</code>,
141 <code>LD_SHLIB</code>, <code>LDFLAGS_SHLIB</code>,
142 <code>LIBEXECDIR</code>, <code>LIBS_SHLIB</code>,
143 <code>SBINDIR</code>, <code>SYSCONFDIR</code>, <code>TARGET</code>.
145 <p>¼³Á¤À» Á÷Á¢ ¾Ë¾Æ³¾¶§ »ç¿ëÇÑ´Ù.</p>
146 <div class="example"><p><code>
147 INC=-I`apxs -q INCLUDEDIR`
150 <p>¿¹¸¦ µé¾î, ¾ÆÆÄÄ¡ C Çì´õÆÄÀÏÀ» Á÷Á¢ Á¢±ÙÇÑ´Ù¸é
151 Makefile¿¡¼ À§¿Í °°ÀÌ »ç¿ëÇÑ´Ù.</p></dd>
155 <h3><a name="options.conf" id="options.conf">¼³Á¤ ¿É¼Ç</a></h3>
157 <dt><code>-S <var>name</var>=<var>value</var></code></dt>
158 <dd>ÀÌ ¿É¼ÇÀº À§¿¡¼ ¼³¸íÇÑ apxs ¼³Á¤À» º¯°æÇÑ´Ù.</dd>
162 <h3><a name="options.template" id="options.template">°ßº»(template) »ý¼º ¿É¼Ç</a></h3>
164 <dt><code>-g</code></dt>
165 <dd>ÇÏÀ§µð·ºÅ丮 <var>name</var>À» ¸¸µé°í (<code>-n</code>
166 ¿É¼Ç Âü°í) ±×°÷¿¡ ÆÄÀÏ µÎ°³¸¦ ¸¸µç´Ù: ÇÑ ÆÄÀÏÀº
167 <code>mod_<var>name</var>.c</code>¶ó´Â °ßº» ¸ðµâ¼Ò½ºÆÄÀÏ·Î,
168 ÀÚ½ÅÀÇ ¸ðµâÀ» ¸¸µé¶§ °ßº»À¸·Î »ç¿ëÇϰųª apxs ±â´ÉÀ»
169 ½ÃÇèÇغ¼¶§ »ç¿ëÇÑ´Ù. ´Ù¸¥ ÆÄÀÏÀº ÀÌ ¸ðµâÀ» ½±°Ô ÄÄÆÄÀÏÇÏ°í
170 ¼³Ä¡ÇϱâÀ§ÇÑ <code>Makefile</code>ÀÌ´Ù.</dd>
174 <h3><a name="options.dso" id="options.dso">DSO ÄÄÆÄÀÏ ¿É¼Ç</a></h3>
176 <dt><code>-c</code></dt>
177 <dd>ÄÄÆÄÀÏÀ» Áö½ÃÇÑ´Ù. ¸ÕÀú <var>files</var>¿¡¼ C
178 ¼Ò½ºÆÄÀϵé(.c)À» ¿ÀºêÁ§Æ®ÆÄÀÏ(.o)·Î ÄÄÆÄÀÏÇÏ°í,
179 <var>files</var>ÀÇ ³ª¸ÓÁö ¿ÀºêÁ§Æ®ÆÄÀϵé(.o°ú .a)°ú
180 ¸µÅ©ÇÏ¿© µ¿Àû°øÀ¯°´Ã¼ <var>dsofile</var>À» ¸¸µç´Ù.
181 <code>-o</code> ¿É¼ÇÀ» »ç¿ëÇÏÁö¾ÊÀ¸¸é <var>files</var>ÀÇ
182 ù¹ø° ÆÄÀÏ¸í¿¡¼ À̸§À» ÃßÃøÇÏ¿© º¸Åë
183 <code>mod_<var>name</var>.so</code>¸¦ »ç¿ëÇÑ´Ù.</dd>
185 <dt><code>-o <var>dsofile</var></code></dt>
186 <dd>»ý¼ºÇÒ µ¿Àû°øÀ¯°´Ã¼ ÆÄÀϸíÀ» Á÷Á¢ ÁöÁ¤ÇÑ´Ù. À̸§À»
187 ÁöÁ¤ÇÏÁö¾Ê°í <var>files</var> ¸ñ·Ï¿¡¼ À̸§À» ÃßÃøÇÏÁö
188 ¸øÇÏ¸é ¸¶Áö¸·À¸·Î <code>mod_unknown.so</code>¸¦ À̸§À¸·Î
191 <dt><code>-D <var>name</var>=<var>value</var></code></dt>
192 <dd>ÀÌ ¿É¼ÇÀ» ÄÄÆÄÀÏ ¸í·É¾î·Î Á÷Á¢ Àü´ÞÇÑ´Ù.
193 ÄÄÆÄÀ϶§ ÀÚ½ÅÀÇ defineÀ» Ãß°¡ÇÑ´Ù.</dd>
195 <dt><code>-I <var>incdir</var></code></dt>
196 <dd>ÀÌ ¿É¼ÇÀ» ÄÄÆÄÀÏ ¸í·É¾î·Î Á÷Á¢ Àü´ÞÇÑ´Ù.
197 ÄÄÆÄÀ϶§ include¸¦ ãÀ» µð·ºÅ丮¸¦ Ãß°¡ÇÑ´Ù.</dd>
199 <dt><code>-L <var>libdir</var></code></dt>
200 <dd>ÀÌ ¿É¼ÇÀ» ¸µÄ¿ ¸í·É¾î·Î Á÷Á¢ Àü´ÞÇÑ´Ù.
201 ÄÄÆÄÀ϶§ ¶óÀ̺귯¸®¸¦ ãÀ» µð·ºÅ丮¸¦ Ãß°¡ÇÑ´Ù.</dd>
203 <dt><code>-l <var>libname</var></code></dt>
204 <dd>ÀÌ ¿É¼ÇÀ» ¸µÄ¿ ¸í·É¾î·Î Á÷Á¢ Àü´ÞÇÑ´Ù.
205 ÄÄÆÄÀ϶§ »ç¿ëÇÒ ¶óÀ̺귯¸®¸¦ Ãß°¡ÇÑ´Ù.</dd>
207 <dt><code>-Wc,<var>compiler-flags</var></code></dt>
208 <dd>ÀÌ ¿É¼ÇÀº Ãß°¡ ¿É¼Ç <var>compiler-flags</var>¸¦
209 <code>libtool --mode=compile</code> ¸í·É¾î·Î Àü´ÞÇÑ´Ù.
210 ÄÄÆÄÀÏ·¯ ƯÀ¯ÀÇ ¿É¼ÇÀ» Ãß°¡ÇÒ¶§ »ç¿ëÇÑ´Ù.</dd>
212 <dt><code>-Wl,<var>linker-flags</var></code></dt>
213 <dd>ÀÌ ¿É¼ÇÀº Ãß°¡ ¿É¼Ç <var>linker-flags</var>¸¦
214 <code>libtool --mode=link</code> ¸í·É¾î·Î Àü´ÞÇÑ´Ù. ¸µÄ¿
215 ƯÀ¯ÀÇ ¿É¼ÇÀ» Ãß°¡ÇÒ¶§ »ç¿ëÇÑ´Ù.</dd>
219 <h3><a name="options.dsoinstall" id="options.dsoinstall">DSO ¼³Ä¡°ú ¼³Á¤ ¿É¼Ç</a></h3>
222 <dt><code>-i</code></dt>
223 <dd>¼³Ä¡¸¦ Áö½ÃÇÑ´Ù. ¿©·¯ µ¿Àû°øÀ¯°´Ã¼¸¦ ¼¹öÀÇ
224 <var>modules</var> µð·ºÅ丮¿¡ ¼³Ä¡ÇÑ´Ù.</dd>
226 <dt><code>-a</code></dt>
227 <dd>¾ÆÆÄÄ¡ <code>httpd.conf</code> ¼³Á¤ÆÄÀÏ¿¡ ÀûÀýÇÑ
228 <code class="directive"><a href="../mod/mod_so.html#loadmodule">LoadModule</a></code> ÁÙÀ»
229 Ãß°¡Çϰųª ÀÌ¹Ì ÀÖ´Ù¸é È°¼ºÈÇÏ¿© ¸ðµâÀ» »ç¿ëÇϵµ·Ï
232 <dt><code>-A</code></dt>
233 <dd><code>-a</code>¿Í ºñ½ÁÇÏÁö¸¸, <code class="directive"><a href="../mod/mod_so.html#loadmodule">LoadModule</a></code> Áö½Ã¾î ¾Õ¿¡
234 ¿ì¹°Á¤ÀÚ(<code>#</code>)¸¦ ºÙÀδÙ. <em>Áï</em>, ÇöÀç´Â
235 »ç¿ëÇÏÁö¾ÊÁö¸¸ ³ªÁß¿¡ »ç¿ëÇÒ ¼ö ÀÖµµ·Ï ¸ðµâÀ» ÁغñÇÑ´Ù.</dd>
237 <dt><code>-e</code></dt>
238 <dd>ÆíÁýÀ» Áö½ÃÇÑ´Ù. <code>-a</code> ȤÀº <code>-A</code>
239 ¿É¼Ç°ú °°ÀÌ »ç¿ëÇÒ ¼ö ÀÖÀ¸¸ç, <code>-i</code> ¸í·É°ú
240 ºñ½ÁÇÏÁö¸¸ ¸ðµâÀ» ¼³Ä¡ÇÏÁö¾Ê°í ¾ÆÆÄÄ¡
241 <code>httpd.conf</code> ¼³Á¤ÆÄÀϸ¸ ÆíÁýÇÑ´Ù.</dd>
244 </div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
245 <div class="section">
246 <h2><a name="examples" id="examples">¿¹Á¦</a></h2>
247 <p>¾ÆÆÄÄ¡¼¹öÀÇ ±â´ÉÀ» È®ÀåÇÏ´Â <code>mod_foo.c</code>¶ó´Â
248 ¾ÆÆÄÄ¡ ¸ðµâÀÌ ÀÖ´Ù°í °¡Á¤ÇÏÀÚ. ¸ÕÀú ´ÙÀ½ ¸í·É¾î¸¦ »ç¿ëÇÏ¿©
249 C ¼Ò½º¸¦ ¾ÆÆÄÄ¡ ¼¹ö°¡ ÀоîµéÀÏ °øÀ¯°´Ã¼·Î ÄÄÆÄÀÏÇÑ´Ù:</p>
251 <div class="example"><p><code>
252 $ apxs -c mod_foo.c<br />
253 /path/to/libtool --mode=compile gcc ... -c mod_foo.c<br />
254 /path/to/libtool --mode=link gcc ... -o mod_foo.la mod_foo.slo<br />
258 <p>±×¸®°í ÀÌ °øÀ¯°´Ã¼¸¦ ÀоîµéÀÌ´Â <code class="directive"><a href="../mod/mod_so.html#loadmodule">LoadModule</a></code> Áö½Ã¾î¸¦ ¾ÆÆÄÄ¡
259 ¼³Á¤¿¡ Ãß°¡ÇÑ´Ù. <code>apxs</code>´Â ÀÚµ¿À¸·Î °øÀ¯°´Ã¼¸¦
260 "modules" µð·ºÅ丮¿¡ ¼³Ä¡ÇÏ°í <code>httpd.conf</code> ÆÄÀÏÀ»
261 ¾Ë¸Â°Ô ¼öÁ¤ÇÏ¿© °£´ÜÈ÷ ÀÛ¾÷À» ¸¶Ä£´Ù. ´ÙÀ½ °°ÀÌ ½ÇÇàÇÑ´Ù:</p>
263 <div class="example"><p><code>
264 $ apxs -i -a mod_foo.la<br />
265 /path/to/instdso.sh mod_foo.la /path/to/apache/modules<br />
266 /path/to/libtool --mode=install cp mod_foo.la /path/to/apache/modules
268 chmod 755 /path/to/apache/modules/mod_foo.so<br />
269 [/path/to/apache/conf/httpd.conf¿¡¼ `foo' ¸ðµâÀ» È°¼ºÈÇÑ´Ù]<br />
273 <p>±×·¯¸é ´ÙÀ½°ú °°Àº ÁÙÀ»</p>
275 <div class="example"><p><code>
276 LoadModule foo_module modules/mod_foo.so
279 <p>¼³Á¤ÆÄÀÏ¿¡ ¾ø´Ù¸é Ãß°¡ÇÑ´Ù. ÀÌ ¼³Á¤À» ±âº»ÀûÀ¸·Î »ç¿ëÇÏÁö
280 ¾Ê´Â´Ù¸é <code>-A</code> ¿É¼ÇÀ» »ç¿ëÇÑ´Ù. <em>Áï</em></p>
282 <div class="example"><p><code>
283 $ apxs -i -A mod_foo.c
286 <p>apxs¸¦ ½±°Ô »ç¿ëÇÏ·Á°í ´ÙÀ½°ú °°ÀÌ ¾ÆÆÄÄ¡ ¸ðµâ °ßº»°ú
287 MakefileÀ» ¸¸µé ¼ö ÀÖ´Ù:</p>
289 <div class="example"><p><code>
290 $ apxs -g -n foo<br />
291 Creating [DIR] foo<br />
292 Creating [FILE] foo/Makefile<br />
293 Creating [FILE] foo/modules.mk<br />
294 Creating [FILE] foo/mod_foo.c<br />
295 Creating [FILE] foo/.deps<br />
299 <p>±×·±ÈÄ ¹Ù·Î °ßº» ¸ðµâÀ» °øÀ¯°´Ã¼·Î ÄÄÆÄÀÏÇÏ¿© ¾ÆÆÄÄ¡
300 ¼¹ö°¡ Àеµ·ÏÇÑ´Ù:</p>
302 <div class="example"><p><code>
304 $ make all reload<br />
305 apxs -c mod_foo.c<br />
306 /path/to/libtool --mode=compile gcc ... -c mod_foo.c<br />
307 /path/to/libtool --mode=link gcc ... -o mod_foo.la mod_foo.slo<br />
308 apxs -i -a -n "foo" mod_foo.la<br />
309 /path/to/instdso.sh mod_foo.la /path/to/apache/modules<br />
310 /path/to/libtool --mode=install cp mod_foo.la /path/to/apache/modules
312 chmod 755 /path/to/apache/modules/mod_foo.so<br />
313 [/path/to/apache/conf/httpd.conf¿¡¼ `foo' ¸ðµâÀ» È°¼ºÈÇÑ´Ù]<br />
314 apachectl restart<br />
315 /path/to/apache/sbin/apachectl restart: httpd not running, trying to start<br />
316 [Tue Mar 31 11:27:55 1998] [debug] mod_so.c(303): loaded module foo_module<br />
317 /path/to/apache/sbin/apachectl restart: httpd started<br />
322 <div class="bottomlang">
323 <p><span>°¡´ÉÇÑ ¾ð¾î: </span><a href="../en/programs/apxs.html" hreflang="en" rel="alternate" title="English"> en </a> |
324 <a href="../ko/programs/apxs.html" title="Korean"> ko </a> |
325 <a href="../tr/programs/apxs.html" hreflang="tr" rel="alternate" title="Türkçe"> tr </a></p>
326 </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&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>
327 <script type="text/javascript"><!--//--><![CDATA[//><!--
328 var comments_shortname = 'httpd';
329 var comments_identifier = 'http://httpd.apache.org/docs/trunk/programs/apxs.html';
331 if (w.location.hostname.toLowerCase() == "httpd.apache.org") {
332 d.write('<div id="comments_thread"><\/div>');
333 var s = d.createElement('script');
334 s.type = 'text/javascript';
336 s.src = 'https://comments.apache.org/show_comments.lua?site=' + comments_shortname + '&page=' + comments_identifier;
337 (d.getElementsByTagName('head')[0] || d.getElementsByTagName('body')[0]).appendChild(s);
340 d.write('<div id="comments_thread">Comments are disabled for this page at the moment.<\/div>');
342 })(window, document);
343 //--><!]]></script></div><div id="footer">
344 <p class="apache">Copyright 2012 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>
345 <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[//><!--
346 if (typeof(prettyPrint) !== 'undefined') {