砍敺 IT_man 2017-3-28 10:13 蝺刻摩
( G! u$ h2 c6 L3 E' @0 s5 g$ c& _- a
敺萇:
/ y2 Y! l5 ?- L* @1 P0 ]: e& J6 j: v( F
憭拙粹閬敺root su 唬祉user,隞文銝:4 X; ~- N- ~8 X6 T# X, u
#su someuser 蝯show error, v. e; i; r" K9 Z" P) M- A/ ^8 c
su: cannot set user id: Resource temporarily unavailable
; M2 L0 r( C# V1 L# N( f* R6 Z, ]6 S; T; `9 e
乩google敺交寞砍皰rocess 憭折嗆 1024:6 k4 ]( k' h4 C4 \% S( R
" k9 _/ ?* |" p. `0 d# c1 S#cat /etc/security/limits.d/90-nproc.conf, g, _# L8 I+ J' c$ h
# Default limit for number of user's processes to prevent
9 ^/ v1 i; N& r6 y5 `1 P* m' J# accidental fork bombs.: r1 g& M% Z: r% l" v
# See rhbz #432903 for reasoning./ W) w0 t3 E. h
' K9 u5 J9 s! l6 X0 G, |
* soft nproc 1024 ====>撠1024寞憭找暺憒4096撠 OK
: @% {0 l" v" o$ U* }$ Y5 G( M( [root soft nproc unlimited. i1 {1 ]9 P' _0 G, v( x) A+ M
9 I* w& p" U7 u, s1 L& x
( K; H$ ]5 u8 c* c1 v8 x- r5 |2 f* C4 n f5 U; c
+ a& w1 }* b. P* J% S
) o! c4 z/ m* V9 B f. x# q |
|