[1] vi /etc/php.ini
$ Q& z' m/ h$ E3 |, G2 ^2 k3 n* x+ u* V8 U$ |/ L6 s0 ], f1 S0 x
max_execution_time = 300 Script瑁銝(桐嚗蝘)( H0 i( K) x1 W; A H: J4 y4 T
9 G* W+ i3 A* W& V) p$ u; wmax_input_time = 300 Script鞈銝(桐嚗蝘)6 j6 b+ I- o0 e# c' D8 M
% g; C/ x" o; W/ t& j3 Umemory_limit = 2001M 蝟餌絞閮園(瘜冽嚗潔摰閬閮剜銝W拚潮賢之)
; T0 c: W; R! J7 Y& ]
# V3 o' p) M" e: Y' B r1 D1 O) \/ npost_max_size = 200M 雿輻刻”桃file甈雿舐沌OST喳(銝餉2)
9 v' g1 `) m( S! ^8 H" W4 B! r
$ a; j3 S# N% S- f+ Q) Uupload_max_filesize = 2000M 格活銝單獢摰寥(銝餉1); R5 W, u$ L8 {! k. j
3 x; K: S. b; @+ qdefault_socket_timeout = 300 Socket∪瑞(桐嚗蝘)& z- `) f* t! ^" ~5 _1 p
1 [1 k1 W; B8 ` m) t[2] vi /etc/nginx/nginx.conf% y: S% u1 U& d8 S
- h2 h! D P0 F1 Z% |) ~
client_max_body_size 2500M;client_body_buffer_size 2500M;
+ L8 O" `$ V1 ~0 H# q& j; m* O; h8 E; c
[3] 湔 /etc/nginx/conf.d/ 甈脣憭找單獢銋蝬脩閮剖瑼 , Ex: av4u.info.conf
( T/ f% Y( @4 @$ c+ c1 L. s, c; cclient_max_body_size 2500m;
* i3 r# w# Q' j- U% k) M, l7 Qclient_body_buffer_size 2500m;$ U& _$ `- d' P# r9 o. H
+ {5 ^' u0 U# L. H' @$ Y2 ?
- R' s! t" G6 o& x4 [
[4] vi /etc/php-fpm.d/www.conf
) p) g9 \! D: {request_terminate_timeout = 0 (default value = 0) 閬
# A0 q0 ^& H8 K5 }8 b0 Q/ K隞亙蝬撽閮剔60s , 嗡 5G 隞乩憭批銝喳蝬60s敺撠勗箇 "502 bad gateway",蝬 /var/log/nginx/銝賊 error log 潛:
: g' e$ y8 p2 i) A$ [*1138927 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: xxx.xxx.xxx.xxx , 敺
$ L* g7 U$ B. k8 ]7 Q: H8 J6 G
+ j5 X5 U. E! o8 b[5]
7 W1 n( Q/ K7 ^3 M6 nservice php-fpm restart) N- G" M: o, g/ M# ]2 A' C
service nginx restart
: {- U& I3 M S1 C0 m4 h+ g" h' U' W9 k( K m
! M) v$ q' h3 ?( [2 D" l
6 j6 u- ?! k/ ]$ ^
; k8 \" o* P- F* p# a/ _ E9 h9 C1 E
* U: {2 E( R- {1 w) N8 }( u$ w9 s5 M! c5 F8 f2 h& B+ d
S7 T; c: q! a5 d2 V# B2 ?8 @1 L |
|