# 桀蝟餌絞閮剖 (ulimit -a # 舀亦券典)# `- Q$ N/ B; g
ulimit -n
$ }+ q1 t, U( o" l3 G. { n# @1024
9 a: v- u3 w% f
9 N- z/ b4 \6 O9 Q% p1 S; M3 ~
+ F3 d9 c9 x( Q6 T0 V1 f4 @# limits.conf 閮剖 nofile (nofile - max number of open files) 憭批4 ~. T5 o6 y0 G; d
vim /etc/security/limits.conf + w8 V: }0 }+ R
" Q: x% z6 V7 O% T
" r$ d" V5 A$ K. W! u# c
# 憓/靽格 銝餈啣抵 ( 2^20 = 1048576 )' A0 y. c5 }+ C* B' X& o
* soft nofile 1048576
" F2 d- N5 Z" N( T; n) i5 k* hard nofile 10485764 K! W+ ]4 H( C( u. J P0 W
# W1 t4 Q) ^% e3 i- Z
7 N |, c" }9 e; k& p( t) o# 餃箏, 餃, 瑁撠望箇暹迨
( E% J5 d" |4 i; ?ulimit -n
- x9 N& k( E+ F8 B" q1 ~1048576( L i# Y, i$ K% K. e" e
ulimit -n 瘝箇 1048576 閰, 臭蝙典撥嗉身摰5 X% j, F2 Y7 b0 U' V$ G
. m& X2 q1 z; K2 C
" a+ s6 B# C5 r( fulimit -n 1048576, @7 `4 [3 c, f& U7 D' d
/ }: o2 ~) w: Q! N4 F7 y8 f
. |* h7 m& K. Z! b
# 瑼X亥身摰. ^1 |6 G( X6 M2 P. _; E: }
ulimit -n/ A, i: J! N; t
1048576
* R8 r0 O) A2 V" Z0 C1 m8 o |
|