砍敺 IT_man 2017-3-28 10:13 蝺刻摩 1 a u& O/ D! Q0 Q8 w' }/ d0 ~
& m; ]5 ?( ~" l7 n; _
敺萇:
% G W7 @) T6 K. l% f: R3 n
v" l( [9 R. Y% A [$ I憭拙粹閬敺root su 唬祉user,隞文銝:3 w; \2 B( q( G6 C4 Z7 Y7 H
#su someuser 蝯show error6 b# R' ]5 y' w" ]" q% H
su: cannot set user id: Resource temporarily unavailable
D: D" ~/ \- r8 v6 g6 i. k1 y6 G/ B' o* P- \
乩google敺交寞砍皰rocess 憭折嗆 1024:% R+ z3 r3 w6 V8 y! r/ I
# u' e; M. C1 a
#cat /etc/security/limits.d/90-nproc.conf
) B# I$ A7 m2 c4 S/ C1 a7 b# Default limit for number of user's processes to prevent c: J+ Q: K7 Z( L
# accidental fork bombs.
- U" C1 F3 s \! W$ s# See rhbz #432903 for reasoning.- X: L5 O1 o# W" s# n/ }! o, v1 p# O! {
1 f9 ^! N% u: }' a3 y* ^, y
* soft nproc 1024 ====>撠1024寞憭找暺憒4096撠 OK
: f/ o8 s x* o. nroot soft nproc unlimited
' _5 j% N5 S! H" \1 h
" `# _1 _7 c5 u* \8 _% o2 D6 g1 B, L' i2 c
0 v( D1 T& Y& _9 I3 {% Q" }7 B* T
, v4 o$ o* D6 N
" g" B: v1 ?. C0 R1 D |
|