[1] vi /etc/php.ini
' m! a: V ~/ g3 ?3 j) Q r$ f3 P) m" f! ~! a# ~$ E* V7 U
max_execution_time = 300 Script瑁銝(桐嚗蝘)
4 S# v' A4 _8 j9 p8 Z1 A' o" P% y# d9 h$ Q; h% G7 x' a
max_input_time = 300 Script鞈銝(桐嚗蝘)
/ t% r$ Y- C: h4 O1 P2 E
' ~/ U8 ^! B, q" d& ?& h7 fmemory_limit = 2001M 蝟餌絞閮園(瘜冽嚗潔摰閬閮剜銝W拚潮賢之), B( C& t* s1 b z$ f1 v
: B# g/ m( o- D2 h1 q( \post_max_size = 200M 雿輻刻”桃file甈雿舐沌OST喳(銝餉2)
& N# K( l6 m; K2 X
D* J: F2 `( @3 [+ Mupload_max_filesize = 2000M 格活銝單獢摰寥(銝餉1)" t$ }6 t8 J& j) y* l
" T' B) i0 N! w/ k* l {: z) |default_socket_timeout = 300 Socket∪瑞(桐嚗蝘)
6 m& v4 @2 v& N0 c9 l4 _0 d/ S/ V: G9 y
[2] vi /etc/nginx/nginx.conf
8 w+ j1 z# ?: a) V- U; t) i& y5 S0 u6 O) k
client_max_body_size 2500M;client_body_buffer_size 2500M;
# G- U+ v/ n) ^! h* B0 l* O' e* u7 `5 N" _- t
[3] 湔 /etc/nginx/conf.d/ 甈脣憭找單獢銋蝬脩閮剖瑼 , Ex: av4u.info.conf/ e5 L5 `7 k# [- V/ t5 s1 }
client_max_body_size 2500m;
; {7 M" ^: A& A% [client_body_buffer_size 2500m;
/ V. }* x# k- I# q. @
; l8 N% Y" X$ z9 U3 a- o, V
. |; o. p: g: v8 {[4] vi /etc/php-fpm.d/www.conf
' t. G7 w" Q3 {( t# [9 Wrequest_terminate_timeout = 0 (default value = 0) 閬8 q" W. n7 Z: O; V5 t& t% o, E/ u. Y& [
隞亙蝬撽閮剔60s , 嗡 5G 隞乩憭批銝喳蝬60s敺撠勗箇 "502 bad gateway",蝬 /var/log/nginx/銝賊 error log 潛:; H% b& v. \4 u/ v. q/ O
*1138927 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: xxx.xxx.xxx.xxx , 敺
1 N9 Z" K/ ^2 p5 R M9 x. @+ d) @( R: @; F1 X
[5]2 Q( M ~$ J; r1 a, B! X
service php-fpm restart
0 N1 r: D* `. Y. \; |) `/ Wservice nginx restart
% c+ Y, i5 U/ ^% N; v, I! N! Z/ e4 W9 s* ?
4 R* |: w7 t+ u' o
4 p1 w+ y; Y! @/ u3 a; z; W7 Y5 r: a! A k* o
& D* W' W u$ A+ t
. g5 Q3 I; j- j' y) L% m6 S5 C
Z$ Y. \7 g/ g% k' z; f |
|