[1] vi /etc/php.ini
( A2 ~0 X' a5 n4 a+ C/ n7 I* `, V" m
1 B7 _/ v/ B# @8 U" j! ]9 |% gmax_execution_time = 300 Script瑁銝(桐嚗蝘)) [3 a U" Y6 ]6 ~% z
1 m$ _- X* }; h# Y# V, Amax_input_time = 300 Script鞈銝(桐嚗蝘)
/ y9 r' |! u: {! l! C2 b3 n9 y: F9 R4 M9 ?
memory_limit = 2001M 蝟餌絞閮園(瘜冽嚗潔摰閬閮剜銝W拚潮賢之)1 {! F# T/ H* V ^
9 Y% I9 d( r4 u; i, G0 Lpost_max_size = 200M 雿輻刻”桃file甈雿舐沌OST喳(銝餉2)
+ p1 ]1 t, I( K3 p+ S7 I$ B1 m+ `/ b3 g! q
upload_max_filesize = 2000M 格活銝單獢摰寥(銝餉1)
, H0 I9 E! h9 C6 ^1 k+ n+ Q* }4 }( e0 n, u* e0 R
default_socket_timeout = 300 Socket∪瑞(桐嚗蝘)
4 w5 G( N& P3 h, E0 j
, t7 G, I+ O& y" y[2] vi /etc/nginx/nginx.conf
$ i$ A# T5 |" G: k8 d* M: w [% s: B
client_max_body_size 2500M;client_body_buffer_size 2500M;0 p' y! R8 K2 h+ e) }) Y5 @& }0 G
4 }% Y0 [: H f& j8 i3 m* r4 R[3] 湔 /etc/nginx/conf.d/ 甈脣憭找單獢銋蝬脩閮剖瑼 , Ex: av4u.info.conf
) r; @% |! w( V& S; j8 k7 i6 Fclient_max_body_size 2500m;
4 L0 \" l0 `4 m" K6 _, Zclient_body_buffer_size 2500m;
& m3 p* ]" E5 T1 _
# w3 `* M) P) R6 I1 Q' Y, W4 x z x% _+ A
[4] vi /etc/php-fpm.d/www.conf6 u$ i! u# s1 T( y+ ^
request_terminate_timeout = 0 (default value = 0) 閬7 Z0 B+ o/ a9 {: X4 H( `
隞亙蝬撽閮剔60s , 嗡 5G 隞乩憭批銝喳蝬60s敺撠勗箇 "502 bad gateway",蝬 /var/log/nginx/銝賊 error log 潛:
$ j$ t h3 a' G* g6 W*1138927 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: xxx.xxx.xxx.xxx , 敺
! O5 O+ K0 v# q* e9 U: o. Z9 T% ~6 b, R% q; a+ ?
[5]
/ y; j5 ^. a W! k- n+ w4 Z1 ~4 jservice php-fpm restart
' N B1 y# H+ @. wservice nginx restart
* J, ]. C4 o m& M; w
[# n8 Q. A! {( p/ ?
* a7 F8 e$ A& V0 M" k& I* f
1 `6 H2 C2 c* D7 v+ h) w5 f
7 D2 b. `- j3 h ^
: I6 D" K! ~5 ]8 [; u: A+ A0 u+ F" |" \
( x8 F' o. r9 T1 N4 u+ T6 [, J
|
|