[1] vi /etc/php.ini
" Q, I% H$ M; w0 z2 \/ _
, q! I$ q' w+ D. i4 \$ Zmax_execution_time = 300 Script瑁銝(桐嚗蝘); p/ \% ~) K, s0 V h, r
. e* T9 N/ q- I" ~7 mmax_input_time = 300 Script鞈銝(桐嚗蝘)' X" }! t" r* Z- Q) }
3 r+ Y# D9 F( s* Q# x% Tmemory_limit = 2001M 蝟餌絞閮園(瘜冽嚗潔摰閬閮剜銝W拚潮賢之)8 i$ H& [ q" X4 L; G$ g1 r2 v0 J5 ]! u
' x0 h& S* P0 w2 J- w4 ?$ Upost_max_size = 200M 雿輻刻”桃file甈雿舐沌OST喳(銝餉2)# o6 _0 n& z0 R4 X/ s
7 a) K8 m% K5 f# wupload_max_filesize = 2000M 格活銝單獢摰寥(銝餉1)
) \ y5 [1 V& Z! d2 ?! B1 W9 m3 T" \: ?0 L. a( |% x
default_socket_timeout = 300 Socket∪瑞(桐嚗蝘)% Y! ]8 C f/ y* M: Q" z ?# d, M
& R, M2 _1 O# m[2] vi /etc/nginx/nginx.conf% Y! m' e1 N. S' \7 b9 O
8 i% v5 N- d1 j; P, S% X0 M4 T
client_max_body_size 2500M;client_body_buffer_size 2500M;
: d$ T# j) B: z+ q( ~
/ F" Y/ V* a. |" o[3] 湔 /etc/nginx/conf.d/ 甈脣憭找單獢銋蝬脩閮剖瑼 , Ex: av4u.info.conf% J) s! \3 b% b* Y! a. b
client_max_body_size 2500m;
9 Y' a' B* X* D" O( ]0 O6 o! iclient_body_buffer_size 2500m;
. ~. B7 u o2 p, l: {% i
9 P/ K ?4 d8 H+ V" \' [- M* L5 h/ F [$ Q7 e) M: w5 ^' _5 g
[4] vi /etc/php-fpm.d/www.conf6 B1 _ h* i/ K0 C1 k
request_terminate_timeout = 0 (default value = 0) 閬* z/ Z' P; ?- ?0 M9 y8 q
隞亙蝬撽閮剔60s , 嗡 5G 隞乩憭批銝喳蝬60s敺撠勗箇 "502 bad gateway",蝬 /var/log/nginx/銝賊 error log 潛:
$ m/ `0 ]- W% l( b. w! y*1138927 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: xxx.xxx.xxx.xxx , 敺
3 _: N1 t, d+ O) l. ^ O. r
7 ?% U, y7 ~" H% O9 Q[5]7 j$ \+ u5 A$ Q, Z. V
service php-fpm restart
4 X: j- B* O, l8 e5 \0 j) yservice nginx restart
- \1 o) O) |# ~) j! C( O. H4 L2 [8 ~' X
7 K" ~9 k/ s& @5 a5 v7 z! b
5 L! {2 u# w6 }; [4 @$ ^ [
2 C) G& q+ n: n2 w( m$ x/ o
3 ^7 t f8 @9 T( P) M9 j
2 e9 Z+ n" |# g6 }* n% y3 B
( D7 A0 y3 d! t- a5 S, z+ `1 f |
|