[1] vi /etc/php.ini: o. L1 e! E/ G( o, ?' w- r
/ u2 \; O! R' N* k1 k: O1 h
max_execution_time = 300 Script瑁銝(桐嚗蝘)
/ d2 W2 Y6 l: f: k4 p. Q% U+ \/ z+ [) N2 }* K
max_input_time = 300 Script鞈銝(桐嚗蝘)4 S; C4 G( h+ T
4 m2 b2 s/ \1 r& q U# dmemory_limit = 2001M 蝟餌絞閮園(瘜冽嚗潔摰閬閮剜銝W拚潮賢之)
- f- b% k; D' H* C6 T, _! T, f- d; [$ z$ M% e4 z2 C
post_max_size = 200M 雿輻刻”桃file甈雿舐沌OST喳(銝餉2)
! D$ r* @. ]3 T1 Y6 e+ X4 k7 o' w/ P( ~
upload_max_filesize = 2000M 格活銝單獢摰寥(銝餉1)
) R0 S( f8 r2 g1 o0 [0 o) H3 B- g' w# E8 n2 e2 j$ v9 |+ h' d
default_socket_timeout = 300 Socket∪瑞(桐嚗蝘)5 J7 i- ~7 n j3 a3 R
8 b' I6 }0 s( @9 I" U[2] vi /etc/nginx/nginx.conf
' d- m! I# ~% i6 V5 @" B7 A7 e$ L( y- n8 w* m5 T M% U3 U$ d
client_max_body_size 2500M;client_body_buffer_size 2500M;* B) E- @5 P6 d/ ^, z! T
2 \7 y" ]& ]- Z- _) W" v. t/ R
[3] 湔 /etc/nginx/conf.d/ 甈脣憭找單獢銋蝬脩閮剖瑼 , Ex: av4u.info.conf. F# }! t# m$ k
client_max_body_size 2500m;
) S- ^2 I7 }+ @client_body_buffer_size 2500m;( z5 s0 |- Q' f" |9 h0 Y2 h9 E& T/ q
2 s% L1 _7 i& |5 o2 S4 @
( V( \& L3 G4 C! l[4] vi /etc/php-fpm.d/www.conf
/ q2 k _% c lrequest_terminate_timeout = 0 (default value = 0) 閬; W, i! y8 X: N4 E4 d/ u
隞亙蝬撽閮剔60s , 嗡 5G 隞乩憭批銝喳蝬60s敺撠勗箇 "502 bad gateway",蝬 /var/log/nginx/銝賊 error log 潛: ]/ [) N. W) S$ d) o' A, d5 K0 W
*1138927 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: xxx.xxx.xxx.xxx , 敺
7 q& d+ u) U" w6 c& N' f5 D% P& v' y0 u5 P
[5]5 ?! F- R( u$ B) r+ W/ \7 T, m
service php-fpm restart7 O/ @+ L4 ~& k8 W# X
service nginx restart6 h3 d: q# A6 F Q. t6 T
9 ], N; L' o& I7 n- `7 Y
' X8 x/ T) O( G0 I! S: J# y# [0 x
! c4 n% w& X$ r- E+ `: M, q5 t/ |
?0 C A( I, L: S2 J
% V& u. q0 f# O" G3 |& v |
|