[1] vi /etc/php.ini
: E; z3 d2 T ^* `. g
2 y# P# G5 P( P. s3 N# |3 }max_execution_time = 300 Script瑁銝(桐嚗蝘)
* O- C) E' |( O% X2 s6 _: ?7 Q" L( A; i6 m' Z
max_input_time = 300 Script鞈銝(桐嚗蝘). `5 {% J9 ~) g; y' v. Z2 Y! o( w- F
- t. l. J& Y @, ]0 u% dmemory_limit = 2001M 蝟餌絞閮園(瘜冽嚗潔摰閬閮剜銝W拚潮賢之)- Y1 }5 v5 w3 h. j$ N
7 F& D9 j" t$ o
post_max_size = 200M 雿輻刻”桃file甈雿舐沌OST喳(銝餉2)
2 V# Z* a Y ?7 t. h9 C t
) g9 R4 A; ~ f% L2 w \upload_max_filesize = 2000M 格活銝單獢摰寥(銝餉1)
4 Q4 b; H9 n/ ]" e5 o7 e5 ~* B$ K" w! T+ y8 A% N# s* w6 u
default_socket_timeout = 300 Socket∪瑞(桐嚗蝘)
4 `8 U$ r8 c$ B6 W& m( ^% R, t8 e; x/ l, [- `
[2] vi /etc/nginx/nginx.conf8 @# O1 r' C# T* m2 d
4 f4 z- l6 J% P" d0 c
client_max_body_size 2500M;client_body_buffer_size 2500M;
% A Z- B: \( W2 L! D* {2 v+ r3 z" n7 |3 G. y/ _3 X3 O
[3] 湔 /etc/nginx/conf.d/ 甈脣憭找單獢銋蝬脩閮剖瑼 , Ex: av4u.info.conf6 Y$ Z9 g& ^" x5 I: c9 Z
client_max_body_size 2500m;
; g0 k* s" J5 Xclient_body_buffer_size 2500m;
8 ~' F y: }3 f8 f r+ `7 ~( ?& M0 R
% R. f `2 k. ~' k+ ^7 b& P, O6 Q
[4] vi /etc/php-fpm.d/www.conf
; o' {9 D8 N2 X0 \1 J6 z" ?/ K/ ^6 _request_terminate_timeout = 0 (default value = 0) 閬( V* a( F8 X3 a4 T0 C6 U( k
隞亙蝬撽閮剔60s , 嗡 5G 隞乩憭批銝喳蝬60s敺撠勗箇 "502 bad gateway",蝬 /var/log/nginx/銝賊 error log 潛:
6 R$ S3 b. r x9 Y5 H% ^*1138927 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: xxx.xxx.xxx.xxx , 敺
0 M* \' h# i* P! O8 D. N
! [/ b2 a0 q' d$ K$ \) l r[5]% q( I6 L) o0 M q1 Q& }
service php-fpm restart! H& i, s, J9 @
service nginx restart* m+ V2 }/ _0 @, F
9 j$ e% @/ b$ A- a% w
2 H1 w/ C; m8 Z4 ?
" ~4 k7 j$ S* S7 G7 O) T6 a4 V4 M$ _' f
3 d5 f8 [5 ], ~* s! h4 O
) I& g D' u5 S5 n- r
}) q% T1 F, Y" |4 ^3 O8 s# k3 _& N9 M: ~
|
|