# 桀蝟餌絞閮剖 (ulimit -a # 舀亦券典)( r0 K9 U/ t/ t7 N6 M2 r
ulimit -n * I9 W* s0 l, k" G% [
1024
) L" R% [; |$ I- z
/ \ Z3 `& e3 S( {- T! b- b8 f( _5 u W5 A4 a# s* |* E# L( d# n
# limits.conf 閮剖 nofile (nofile - max number of open files) 憭批
! S2 |. w" ~$ F0 y2 b" vvim /etc/security/limits.conf 1 p& S" A# ^+ _" k
7 o, V6 ^. G; c
* e( {3 o' h1 O Q( S
# 憓/靽格 銝餈啣抵 ( 2^20 = 1048576 )
' Z$ o7 ? O/ e* O& K* soft nofile 1048576* }: j9 T) j' A' e6 m* f0 R
* hard nofile 1048576
% q7 l7 _. F8 g' s$ n4 T& ^& W
C8 J: k5 [8 T {7 b3 z3 s0 |- R) E3 x ~$ \
# 餃箏, 餃, 瑁撠望箇暹迨
5 ?" y/ m7 I3 A9 q; z3 Z6 M# eulimit -n
* K$ `) H0 U2 _+ U$ H1048576) |" L: v# v2 S
ulimit -n 瘝箇 1048576 閰, 臭蝙典撥嗉身摰
. y- x% i$ n; V% U
9 h! G( U) R; r9 f, D
8 s$ ]) J+ _/ rulimit -n 10485763 l5 N7 Y/ [6 Z
) V( g9 l8 l5 w9 b
0 o" e# {; E" V" r- I: ^# c Y; q# 瑼X亥身摰; D" T! h- }$ E$ x6 V. y
ulimit -n
( B; h7 ?- G( @' I1048576+ ]; o$ P, H6 q+ U0 \+ B
|
|