[1] vi /etc/php.ini
. L$ c# d4 t5 s( d9 K d$ T( V+ S/ D$ a% E% ~! D: k. s
max_execution_time = 300 Script瑁銝(桐嚗蝘)9 q# b* u0 S5 p8 ^( b& R
9 e) p Q2 i& r# hmax_input_time = 300 Script鞈銝(桐嚗蝘). ?! K% ]9 {, R. z$ g+ `4 t
6 t- ^5 R+ S, M4 b- _" L$ Z0 |* ~memory_limit = 2001M 蝟餌絞閮園(瘜冽嚗潔摰閬閮剜銝W拚潮賢之)
6 t7 C* b5 K% q6 P& S
9 |# r7 Y5 t. p1 Cpost_max_size = 200M 雿輻刻”桃file甈雿舐沌OST喳(銝餉2)
7 `7 U8 W6 \1 N
8 i9 v/ T& D( q! Dupload_max_filesize = 2000M 格活銝單獢摰寥(銝餉1)/ @ T% l. S) j2 y1 k5 q
& o% R1 c& A. n* O* D" H- K. Sdefault_socket_timeout = 300 Socket∪瑞(桐嚗蝘)7 q! a/ l/ v8 @( ^, T% Z
! L# [$ f6 z, q: |) i0 {0 h
[2] vi /etc/nginx/nginx.conf ~5 B6 L. u8 X2 Z+ S
9 h1 S" n' J2 L5 [: ]
client_max_body_size 2500M;client_body_buffer_size 2500M;5 y7 i- {9 j B# n
+ X" _ z0 F7 F1 w$ l[3] 湔 /etc/nginx/conf.d/ 甈脣憭找單獢銋蝬脩閮剖瑼 , Ex: av4u.info.conf
/ w* x$ `# p+ xclient_max_body_size 2500m;
7 j/ O8 O/ D# j& U( `( r* ?1 oclient_body_buffer_size 2500m;
% d) G) Y# v, p3 v
- I! D3 _ y0 @/ Y4 G4 |
+ o$ z2 j2 ]' p7 n[4] vi /etc/php-fpm.d/www.conf( g/ B- E1 _9 x( \/ H
request_terminate_timeout = 0 (default value = 0) 閬8 ` c7 H+ J) f( O& [! w, Z
隞亙蝬撽閮剔60s , 嗡 5G 隞乩憭批銝喳蝬60s敺撠勗箇 "502 bad gateway",蝬 /var/log/nginx/銝賊 error log 潛:
) G! x3 Y* q& G9 r0 z7 p! X0 M*1138927 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: xxx.xxx.xxx.xxx , 敺
( w s* ~, M- o+ E
/ u2 `$ g4 l$ q2 B[5]' C8 u& x) z) X
service php-fpm restart
3 ~1 P- @; g+ a [0 U) \service nginx restart1 g, q: P& Z9 C
+ T1 p: f, N5 S5 Z6 G& b( [' b' V
( z9 c i0 v9 ?/ [& g# [" L: ]; U; O. w
7 z2 z3 U+ p; h7 S: u, s* F; W# W! |; q F5 H: Z" B0 C
1 U) M/ M% {$ p |
|