# 桀蝟餌絞閮剖 (ulimit -a # 舀亦券典)8 t8 A5 T0 y& W$ r- _
ulimit -n , J; i$ e/ X" d- L2 D$ a% G
1024
+ Q' y/ Z/ x5 e! x9 O: p
; Z' J' l/ t5 H4 l. n0 {" m% i" l: d: P0 o7 I) R$ \1 f3 g q
# limits.conf 閮剖 nofile (nofile - max number of open files) 憭批
) P `! |3 U- _! lvim /etc/security/limits.conf
' L- s6 V) o2 X. R* {5 k/ W2 K Q$ X6 V8 ~
5 q6 ]& L7 W/ s
# 憓/靽格 銝餈啣抵 ( 2^20 = 1048576 )
6 T+ j) U' j1 |6 n: Y+ G* soft nofile 1048576 I+ u7 Y+ W+ r4 c: `8 C, N
* hard nofile 10485763 @ p- B1 d: R) T& ]3 f. K2 ~
3 {: Z! |+ [( P, B9 ~2 v0 k$ K" i
! j, u+ M& o. t# 餃箏, 餃, 瑁撠望箇暹迨
+ N$ V; s, u0 @9 _; t- Z8 c+ yulimit -n
3 n# S9 b# g: W3 D1048576
6 C2 r2 V; I* w* o+ X ulimit -n 瘝箇 1048576 閰, 臭蝙典撥嗉身摰& s; U( Q; X# X0 D' E
+ ]! z' d8 N# B' d' `( O
$ S0 C- j$ C& [0 U$ ]" C2 `5 b+ hulimit -n 1048576; x8 L; [# g6 f$ G
* f$ e6 d3 s+ K6 w- h' o" h0 S/ v
/ y& v* _1 Q; }0 \# 瑼X亥身摰+ h5 Q K8 R$ D2 t! C5 U6 G$ X
ulimit -n
) X7 _% @' K1 ~) n& i; |# [1048576; D' d- n' Z" z. f
|
|