[1] vi /etc/php.ini
9 R! F- D3 h' R# h+ C3 L' b% D) M. D3 L( K
max_execution_time = 300 Script瑁銝(桐嚗蝘)
2 W2 {5 r, @# E; h) I# B( p! o& y6 ?: `8 ^! b
max_input_time = 300 Script鞈銝(桐嚗蝘)+ n8 h& W3 F Q" j0 f( q
+ T& a2 \- `1 F' S3 ~* s* Dmemory_limit = 2001M 蝟餌絞閮園(瘜冽嚗潔摰閬閮剜銝W拚潮賢之)
5 A2 m k* `5 E& z8 k! |: y S' C6 k1 N: L
post_max_size = 200M 雿輻刻”桃file甈雿舐沌OST喳(銝餉2)
/ q; A0 u! y4 C6 q6 G$ O! B1 D2 w! v/ m: O8 q
upload_max_filesize = 2000M 格活銝單獢摰寥(銝餉1)9 [9 ]4 N) N( X( A# s/ p
: v" M6 G$ r8 e5 \+ x. x( W. o
default_socket_timeout = 300 Socket∪瑞(桐嚗蝘)
* b4 p! D8 g. [% H/ x7 Z) q- m" P; p( X: U( D
[2] vi /etc/nginx/nginx.conf' p( @& n/ K' U: L) Y1 R
) @6 m8 M, D& v( @, c; Uclient_max_body_size 2500M;client_body_buffer_size 2500M; ]* D0 a3 b) \
b) F+ k7 J2 o, C, U, Z/ v
[3] 湔 /etc/nginx/conf.d/ 甈脣憭找單獢銋蝬脩閮剖瑼 , Ex: av4u.info.conf
9 z" p& N/ d6 ~% ]2 c( a: Jclient_max_body_size 2500m;
?: [- d$ l I7 Bclient_body_buffer_size 2500m;5 {3 J) k+ v: G0 ?" l; M: |
4 H9 V) P" {# Y1 h& B: A
: R5 F6 H4 t1 n/ `: [
[4] vi /etc/php-fpm.d/www.conf7 u1 [* l" ^3 l1 f( u* P" f! i% c
request_terminate_timeout = 0 (default value = 0) 閬
, l) U/ f- A8 ~7 @! s隞亙蝬撽閮剔60s , 嗡 5G 隞乩憭批銝喳蝬60s敺撠勗箇 "502 bad gateway",蝬 /var/log/nginx/銝賊 error log 潛:* d9 k; F$ m& e
*1138927 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: xxx.xxx.xxx.xxx , 敺
4 g: c% c- k+ s2 ? D2 |; U7 K! B8 R+ L. j/ ?( ?
[5]. v3 ]1 l. k* q) _
service php-fpm restart
3 A2 ^, G( |5 cservice nginx restart5 h/ w& Z2 Q, o6 u/ h2 n7 K
. w& T/ E# }' x; a
/ H% `" X7 s" n9 X$ r/ L! b
0 d. g: h& @! G3 A e/ R9 L7 k) e; d! O+ y
4 M7 o* [4 r8 Y$ k
2 C& F$ s" W9 f
0 O" [2 g! {8 @, f c: ^% l2 }: e |
|