砍敺 IT_man 2017-3-28 10:13 蝺刻摩 6 v- D% o$ P0 f: ` F; K
4 ^+ K3 [6 H+ J; N' T; `' w' f敺萇:
" l0 P' i1 X; ^$ J% g
9 I/ H3 E- o' w4 t; U8 D! [憭拙粹閬敺root su 唬祉user,隞文銝:
/ E$ _% ]4 J% ~) G& ?' J! f" H#su someuser 蝯show error8 L3 C3 h, a, s' m$ U
su: cannot set user id: Resource temporarily unavailable
2 d/ a! |/ o( g+ M. f1 ~0 ^* S' A6 Z. \+ g# {: ~ r
乩google敺交寞砍皰rocess 憭折嗆 1024:
9 B4 q; F% ^+ p* Y
+ y, w3 E3 r' o' z; R6 y2 O. \0 c#cat /etc/security/limits.d/90-nproc.conf
# D9 ]3 q7 z" R! L# Default limit for number of user's processes to prevent
/ F i4 O, o+ ^. v( e# accidental fork bombs.
4 z$ x8 L2 W# ]- @/ y- n0 \6 J# U# See rhbz #432903 for reasoning.; \" {) T* p+ ?) D4 x# _9 t
; M9 p' f" _) Q W; j& W
* soft nproc 1024 ====>撠1024寞憭找暺憒4096撠 OK
& m2 h$ w( M" |6 Qroot soft nproc unlimited
& R: F. ]+ W+ k. m. o, @7 m5 f! ?9 @
8 H+ x0 W. j3 h. r; @2 c6 U' C0 c+ E1 a1 _6 @4 ~ S
1 p7 J2 t# t. r! h2 ?
; k9 E' E. E* V( a, g1 n |
|