[1] vi /etc/php.ini
% `6 \+ |% |, P+ j! u5 O
5 S. E4 N: s% `2 u, qmax_execution_time = 300 Script瑁銝(桐嚗蝘)) s: D: d& S& P# d/ i' z
: o1 P( j0 Y3 S5 Emax_input_time = 300 Script鞈銝(桐嚗蝘)
/ s3 {6 [! r( M
: ?8 u$ h' o$ x' m- g$ Umemory_limit = 2001M 蝟餌絞閮園(瘜冽嚗潔摰閬閮剜銝W拚潮賢之)) w4 d& u$ }4 n: X7 x" r) o
% e% i. t8 A' V, m3 d2 h( j. Rpost_max_size = 200M 雿輻刻”桃file甈雿舐沌OST喳(銝餉2)/ K( M( z t& r& K4 y0 ]
, D) w8 }: U0 ^7 G# t' c) `
upload_max_filesize = 2000M 格活銝單獢摰寥(銝餉1)6 s0 H3 u, n1 P# I8 i
Y- x. U# O; Idefault_socket_timeout = 300 Socket∪瑞(桐嚗蝘)2 \, x) z: M) p- W& J, I
; k$ m- A2 g2 P3 t( t[2] vi /etc/nginx/nginx.conf
: O+ C& m6 l; l3 _! Q7 J. Q/ }$ p: g/ s
client_max_body_size 2500M;client_body_buffer_size 2500M;
% Z$ D @% b$ b, d" z: |8 u2 X8 T1 s. ?# E
[3] 湔 /etc/nginx/conf.d/ 甈脣憭找單獢銋蝬脩閮剖瑼 , Ex: av4u.info.conf
; d7 o# M2 y: }3 ]7 dclient_max_body_size 2500m;
9 f8 r; M( E6 g5 y! m1 Gclient_body_buffer_size 2500m;% a8 e8 }. Y3 |8 D. G
( y0 T3 P4 o# T' J2 ]3 p$ G
8 a" m0 F: I' r4 `0 ]8 e. Z
[4] vi /etc/php-fpm.d/www.conf
% Z0 Z' u/ r9 x: F) orequest_terminate_timeout = 0 (default value = 0) 閬# b. S v) R- r6 O# ~$ p1 h A
隞亙蝬撽閮剔60s , 嗡 5G 隞乩憭批銝喳蝬60s敺撠勗箇 "502 bad gateway",蝬 /var/log/nginx/銝賊 error log 潛:/ V7 ?. X' K3 \! ^9 W
*1138927 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: xxx.xxx.xxx.xxx , 敺
; o; l- A$ g9 L. J4 ?" `
: Z% L3 V7 V% M0 X[5]
# C8 ?, O. ]. u9 Yservice php-fpm restart
5 D1 d5 J8 p/ h; m$ S/ J# Sservice nginx restart: l( `2 R" \3 A: }* I
# Q" R0 \+ t7 D( u& ]( y% X' G* f$ l% C! a2 N! G- D5 W& z$ \
' p7 ~2 J& O$ g- n& {4 y
0 R/ Z0 C2 B1 H5 d, A7 D3 r! {* v
) x5 h9 H7 r3 n
8 q, }( N7 f$ y
5 }2 }9 K9 B( ^- M5 u$ ?5 B
|
|