砍敺 IT_man 2017-3-28 10:13 蝺刻摩
( E" ?3 _6 Q/ N8 @# b
( u" N/ \, b! j敺萇:
4 k9 ?9 Q5 ^: R8 ^, W7 j# g+ J! S7 i' \7 b; i
憭拙粹閬敺root su 唬祉user,隞文銝:4 S% k" ^1 N7 o; @( P/ T9 c; z
#su someuser 蝯show error6 G& r- D2 A( O" e4 e1 k
su: cannot set user id: Resource temporarily unavailable9 j0 T! P# S7 ~4 x
6 ]6 F# n7 X4 e: u# k1 S8 z7 ~; v乩google敺交寞砍皰rocess 憭折嗆 1024:6 V. e8 q# S5 z- h; C' I# k5 o+ t
1 x3 ]* L% u! ?4 J2 f6 @5 t#cat /etc/security/limits.d/90-nproc.conf
. g/ M* Q C6 D% L1 }7 L) U$ k7 K5 b# Default limit for number of user's processes to prevent
, S& C6 Z9 j" @ x& i6 V# accidental fork bombs.
# i8 q4 d' u" u# See rhbz #432903 for reasoning.1 |6 L* P* M, y7 A, T& p7 l7 s
7 N8 G" \- |3 Q" j' F
* soft nproc 1024 ====>撠1024寞憭找暺憒4096撠 OK, x) M) V& a* j& B5 y% i! |/ ~
root soft nproc unlimited
! D9 @$ X" a) G0 g( Y+ H/ y# s6 V5 }) @9 V8 ]" d
0 t, |; r$ K( I
$ y# u! ~6 K( B
0 A% ^) k9 b" I; _1 t# H, s C7 h/ O% ]2 U4 K7 }. R
|
|