1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
|
<?xml version="1.0" encoding="iso-2022-jp"?>
<!DOCTYPE manualpage SYSTEM "./style/manualpage.dtd">
<?xml-stylesheet type="text/xsl" href="./style/manual.ja.xsl"?>
<!-- English revision: 1.2.2.6 -->
<manualpage metafile="stopping.xml.meta">
<title>$BDd;_$H:F5/F0(B</title>
<summary>
<p>$B$3$NJ8=q$G$O(B Unix $B$KN`;w$7$?%7%9%F%`$G$N(B
Apache $B$NDd;_$H:F5/F0$K$D$$$F07$C$F$$$^$9!#(B
Windows NT, 2000, XP $B%f!<%6$O(B<a
href="platform/windows.html#winsvc">$B%5!<%S%9$H$7$F(B
Apache $B$r<B9T$9$k(B</a>$B$G!"(BWindows 9x, ME$B%f!<%6$O(B<a
href="platform/windows.html#wincons">$B%3%s%=!<%k%"%W%j%1!<%7%g%s$H$7$F(B
Apache $B$r<B9T$9$k(B</a>$B$G!"(B
$B$3$l$i$N%W%i%C%H%[!<%`$G$N;HMQJ}K!$r$4Mw2<$5$$!#(B</p>
</summary>
<seealso><a href="programs/httpd.html">httpd</a></seealso>
<seealso><a href="programs/apachectl.html">apachectl</a></seealso>
<section id="introduction"><title>$B%$%s%H%m%@%/%7%g%s(B</title>
<p>Apache $B$rDd;_$7$?$j:F5/F0$7$?$j$9$k$?$a$K$O!"<B9T$5$l$F$$$k(B
<code>httpd</code> $B%W%m%;%9$K%7%0%J%k$rAw$kI,MW$,$"$j$^$9!#(B
$B%7%0%J%k$rAw$k$K$OFs$D$NJ}K!$,$"$j$^$9!#(B
$B0l$DL\$O%W%m%;%9$KD>@\%7%0%J%k$rAw$k(B unix $B$N(B <code>kill</code>
$B%3%^%s%I$r;HMQ$9$kJ}K!$G$9!#(B
$B%7%9%F%`$r8+$l$P$?$/$5$s$N(B <code>httpd</code> $B$,(B
$B<B9T$5$l$F$$$k$N$K5$$,IU$/$G$7$g$&$,!"%7%0%J%k$rAw$k$N$O(B
$B?F%W%m%;%9$@$1$G!"$=$l0J30$N8D!9$N%W%m%;%9$K$O(B
$B%7%0%J%k$rAw$i$J$$$G2<$5$$!#$=$N?F%W%m%;%9$N(B pid $B$O(B
<directive module="mpm_common">PidFile</directive>
$B$K=q$+$l$F$$$^$9!#$3$l$O$D$^$j!"?F0J30$N%W%m%;%9$K(B
$B%7%0%J%k$rAw$kI,MW$9$i$J$$!"$H$$$&$3$H$G$9!#(B
$B?F%W%m%;%9$KAw$k$3$H$,$G$-$k(B 3 $B<oN`$N%7%0%J%k$,$"$j$^$9(B:
<code><a href="#term">TERM</a></code>,
<code><a href="#hup">HUP</a></code>,
<code><a href="#graceful">USR1</a></code>
$B$G$9!#$3$l$i$N@bL@$K$D$$$F$OB3$-$r$4Mw2<$5$$!#(B</p>
<p>$B?F%W%m%;%9$K%7%0%J%k$rAw$k$K$O!"(B
$B<!$N$h$&$J%3%^%s%I$rH/9T$7$F2<$5$$(B:</p>
<example>kill -TERM `cat /usr/local/apache2/logs/httpd.pid`</example>
<p><code>httpd</code> $B%W%m%;%9$K%7%0%J%k$rAw$k(B 2 $BHVL\$NJ}K!$O(B
<code>-k</code> $B$H$$$&%3%^%s%I%i%$%s0z?t$r;HMQ$9$k$3$H$G$9!#(B
$B2<$G@bL@$5$l$F$$$k$h$&$K!"(B<code>stop</code>, <code>restart</code>,
<code>graceful</code> $B$r;XDj$G$-$^$9!#(B
$B$3$l$i$O(B <a href="programs/httpd.html">httpd</a> $B$N0z?t$G$9$,!"(B
$B@)8fMQ$N%9%/%j%W%H(B <a href="programs/apachectl.html">apachectl</a> $B$r(B
$B;H$&$3$H$r$*A&$a$7$^$9!#(B<a
href="programs/apachectl.html">apachectl</a> $B$O$=$l$i$N0z?t$r$=$N$^$^(B
<code>httpd</code> $B$KEO$7$^$9!#(B</p>
<p><code>httpd</code> $B$K%7%0%J%k$rAw$C$?8e!"(B
$B<B9T>u67$r<!$N%3%^%s%I$GFI$`$3$H$,$G$-$^$9(B:</p>
<example>tail -f /usr/local/apache2/logs/error_log</example>
<p>$B$3$3$K5s$2$?Nc$O!"3F<+$N(B
<directive module="core">ServerRoot</directive>
$B$H(B
<directive module="mpm_common">PidFile</directive>
$B$N@_Dj$KE,9g$9$k$h$&$KE,59=$@5$7$F2<$5$$!#(B</p>
</section>
<section id="term"><title>$B5^$JDd;_(B</title>
<dl><dt>$B%7%0%J%k(B: TERM</dt>
<dd><code>apachectl -k stop</code></dd>
</dl>
<p><code>TERM</code> $B$"$k$$$O(B <code>stop</code>
$B%7%0%J%k$r?F%W%m%;%9$KAw$k$H!"B(:B$K;R%W%m%;%9A4$F$r(B kill $B$7$h$&$H$7$^$9!#(B
$B;R%W%m%;%9$r40A4$K(B kill $B$7=*$o$k$^$G$K?tIC$+$+$k$+$b$7$l$^$;$s!#(B
$B$=$N8e!"?F%W%m%;%9<+?H$,=*N;$7$^$9!#(B
$B=hM}Cf$N%j%/%(%9%H$OA4$FDd;_$5$l!"$b$O$d%j%/%(%9%H$KBP$9$k(B
$B1~Ez$O$5$l$^$;$s!#(B</p>
</section>
<section id="graceful"><title>$B4K$d$+$J:F5/F0(B</title>
<dl><dt>$B%7%0%J%k(B: USR1</dt>
<dd><code>apachectl -k graceful</code></dd>
</dl>
<p>$B?F%W%m%;%9$O(B <code>USR1</code> $B$"$k$$$O(B <code>graceful</code>
$B%7%0%J%k$r<u$1<h$k$H!";R%W%m%;%9$K8=:_$N%j%/%(%9%H$N=hM}$N8e$K=*N;$9$k(B
($B$"$k$$$O2?$b$7$F$$$J$1$l$P$9$0$K=*N;$9$k(B)
$B$h$&$K(B<em>$B=u8@(B</em>$B$7$^$9!#(B
$B?F%W%m%;%9$O@_Dj%U%!%$%k$r:FFI9~$7$F!"%m%0%U%!%$%k$r3+$-D>$7$^$9!#(B
$B;R%W%m%;%9$,=y!9$K$J$/$J$k$K=>$C$F!"(B
$B?7$7$$(B<em>$B@$Be(B</em>$B$N@_Dj$K$h$k;R%W%m%;%9$KCV$-49$($F$$$-$^$9!#(B
$B$=$7$F!"$3$l$i$,?7$?$J%j%/%(%9%H$KB(:B$K1~Ez$7;O$a$^$9!#(B</p>
<note>$BFCDj$N%W%i%C%H%[!<%`$G$O(B <code>USR1</code>
$B$r4K$d$+$J:F5/F0$N$?$a$K;H$&$3$H$,$G$-$^$;$s$,!"Be$o$j$N%7%0%J%k(B
($BNc$($P(B WINCH) $B$,;HMQ$G$-$k$G$7$g$&!#(B
<code>apachectl graceful</code>
$B$H$$$&%3%^%s%I$O%W%i%C%H%[!<%`$K9g$C$?%7%0%J%k$rAw$j$^$9!#(B</note>
<p>$B$3$N%3!<%I$O>o$K(B
MPM $B$N%W%m%;%9@)8f%G%#%l%/%F%#%V$N@_Dj$r=E;k$7$^$9$N$G!"(B
$B%/%i%$%"%s%H$N%j%/%(%9%H$r07$&%W%m%;%9$H%9%l%C%I$N?t$r:F5/F0$N=hM}Cf$b(B
$BE,@Z$JCM$K0];}$5$l$^$9!#!#$^$?!"<!$N$h$&$K$7$F(B
<directive module="mpm_common">StartServers</directive>
$B$r<i$j$^$9(B:
$B>/$J$/$H$b(B 1 $BIC8e$K(B <directive
module="mpm_common">StartServers</directive> $B8D$N?7$7$$;R%W%m%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3+$3$&$H$7$F(B
root $B$G$J$$$?$a(B
($B$b$7$/$O<B9TCf$N(B <code>httpd</code>
$B$,4{$KI,MW$J%]!<%H$K%P%$%s%I$7$F$$$k$?$a(B)
$B$K<:GT$9$k$G$7$g$&!#(B
$B$3$l0J30$NM}M3$G5/F0$K<:GT$7$?$N$G$"$l$P!"(B
$B$=$l$O@_Dj%U%!%$%k$N%(%i!<$G!"(B
$B4K$d$+$J:F5/F0$r9T$&A0$K$=$N8m$j$r=$@5$7$J$1$l$P$J$j$^$;$s!#(B</note>
</section>
<section id="hup"><title>$B5^$J:F5/F0(B</title>
<dl><dt>$B%7%0%J%k(B: HUP</dt>
<dd><code>apachectl -k restart</code></dd>
</dl>
<p><code>HUP</code> $B$"$k$$$O(B <code>restart</code> $B%7%0%J%k$r?F%W%m%;%9$KAw$k$H!"(B
<code>TERM</code> $B$HF1MM$K;R%W%m%;%9$r(B kill $B$7$^$9$,!"(B
$B?F%W%m%;%9$O=*N;$7$^$;$s!#(B
$B@_Dj%U%!%$%k$r:FFI9~$7$F!"%m%0%U%!%$%kA4$F$r3+$-D>$7$^$9!#(B
$B$=$N8e!"?7$7$$;R%W%m%;%9$r5/F0$7$F1~Ez$rB3$1$^$9!#(B</p>
<p><module>mod_status</module>
$B$r;H$C$F$$$k>l9g$O!"(B<code>HUP</code> $B$,Aw$i$l$?>l9g$K(B
$B%5!<%PE}7W$,%<%m$K@_Dj$5$l$k$3$H$KCm0U$7$F$/$@$5$$!#(B</p>
<note>$B:F5/F0;~$K@_Dj%U%!%$%k$K8m$j$,$"$k$H!"(B
$B?F%W%m%;%9$O:F5/F0$;$:$K%(%i!<$H$H$b$K=*N;$7$^$9!#(B
$B$3$l$rHr$1$k$K$O<!$NJ}K!$r$4Mw2<$5$$!#(B</note>
</section>
<section id="race"><title>$BIUO?(B: $B%7%0%J%k$H6%9g>uBV(B</title>
<p>Apache 1.2b9 $B0JA0$O!":F5/F0$dDd;_$N%7%0%J%k$r4^$`(B<em>$B6%9g>uBV(B</em>
($B6%9g>uBV$r4JC1$K@bL@$9$k$H(B: $B%?%$%_%s$K%0$h$kLdBj$G!"(B
$B6q9g$N0-$$;~4VBS$K$A$g$&$I2?$+$,5/$3$k$HM=A[30$NF0:n$r$9$k(B
$B$h$&$J$3$H$r;X$7$^$9(B) $B$,$"$j$^$7$?!#(B
$B!V@5$7$$!W5!G=$r;}$C$F$$$k%"!<%-%F%/%A%c$G$O!"$G$-$k$@$1(B
$B$3$N$h$&$J$3$H$,5/$3$i$J$$$h$&$K$7$F$$$^$9!#(B
$B$7$+$7!"$"$k<o$N%"!<%-%F%/%A%c$G$O6%9g>uBV$OL$$@3N<B$K5/$3$j$($k(B
$B$H$$$&$3$H$KCm0U$7$F$/$@$5$$!#(B</p>
<p>$B%G%#%9%/>e$G(B
<directive module="mpm_common">ScoreBoardFile</directive>
$B$r;HMQ$7$F$$$k%"!<%-%F%/%A%c$G$O!"(B
$B@x:_E*$K%9%3%"%\!<%I$,2u$l$k2DG=@-$,$"$j$^$9!#(B
$B%9%3%"%\!<%I$,2u$l$?>l9g$O!"(B
"bind: Address already in use" (<code>HUP</code> $B8e(B) $B$d(B
"long lost child came home!" (<code>USR1</code> $B8e(B)
$B$H$$$C$?7k2L$K$J$j$^$9!#(B
$BA0<T$OCWL?E*$J%(%i!<$G$9$,!"(B
$B8e<T$O%9%3%"%\!<%I%9%m%C%H$r<:$&$@$1$G$9!#(B
$B$G$9$+$i4K$d$+$J:F5/F0$O!"$?$^$K3N<B$J:F5/F0(B (HUP)
$B$bJ;MQ$7$F;H$C$?J}$,NI$$$G$7$g$&!#(B
$B$3$l$i$NLdBj$r9nI~$9$k$N$OHs>o$KFq$7$$$N$G$9$,!"(B
$B9,$$$J$3$H$KBgItJ,$N%"!<%-%F%/%A%c$G$O%9%3%"%\!<%I$N%U%!%$%k$OI,MW$"$j$^$;$s!#(B
$B$3$l$r;HMQ$9$k%"!<%-%F%/%A%c$O!"(B
<directive module="mpm_common">ScoreBoardFile</direct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