52AV手機A片王|52AV.ONE

標題: [crit] open() "/xxxx/yyyy/500.html" failed (24: Too many open files) [打印本頁]

作者: IT_man    時間: 2021-6-3 22:51
標題: [crit] open() "/xxxx/yyyy/500.html" failed (24: Too many open files)
# 看目前系統設定的限制 (ulimit -a # 可查看全部參數)* u1 u! }* C* A& p! a+ I( `: a
ulimit -n
3 Z5 O; l' s4 Z) T9 t1024
6 g5 r/ `+ `& X& A  _6 u2 m# |8 {/ ]" p" I
9 f" A/ x7 ~, {
# 由 limits.conf 設定 nofile (nofile - max number of open files) 的大小
) `% H) @" S* s$ y% I; o( e. evim /etc/security/limits.conf - q9 o: m4 ~$ k
$ I  }9 e4 i$ g% [% ~3 w$ W
1 I9 b) n$ h3 s0 \  g3 k
# 增加/修改 下述兩行 ( 2^20 = 1048576 )3 m; R9 g6 |! `$ U& {& O" W$ x
* soft nofile 1048576* a1 [) {3 c: j2 Y7 Q3 P
* hard nofile 10485761 x# e9 G) n2 L2 i  n1 l+ w; s

/ q* i* f, f) j5 y

$ A8 I! @7 v9 j- M) R1 t# 登出後, 再登入, 執行就會出現此值# a- Q1 E/ ?+ p" n
ulimit -n & Q4 a" R& i  }0 `1 o
1048576! j' g' {: X, i9 v" o: b
若 ulimit -n 沒出現 1048576 的話, 可使用強制設定( p; L( l! l5 @* ~9 R/ d3 D

9 Q! Y; f! j, ~* U: f

% C% @( a; f, `" n6 t9 F- tulimit -n 1048576" k) W/ b1 [. p& ~# a
; G" I# i$ L" S/ H% t" z6 m

" z  W7 x2 t" z  V# p$ |3 g# 再檢查設定' ]+ U9 A+ y& k' x: G+ r& B
ulimit -n$ L' t0 z% X  y
1048576% k4 _5 a, |& G% ^  B5 j/ q, H. R





歡迎光臨 52AV手機A片王|52AV.ONE (https://www.52av.one/) Powered by Discuz! X3.2