砍敺 IT_man 2017-3-28 10:13 蝺刻摩
5 Q6 X8 l+ E, i, f4 R5 W' X9 U5 m
5 l2 u) b* w+ Y2 h: V9 c0 A敺萇:
3 R4 _; m/ u8 ^6 m
4 ^3 e2 h* K: F L憭拙粹閬敺root su 唬祉user,隞文銝:
+ b' c/ e( u p- N! d" ~#su someuser 蝯show error
- O$ c2 t, d% C( W! b5 B. Csu: cannot set user id: Resource temporarily unavailable" l5 O# N! z% d8 O
7 f+ X" k6 {8 u; T% \, z3 V8 Y: I6 r
乩google敺交寞砍皰rocess 憭折嗆 1024:
+ ]7 ^' ^- I$ l- o2 E, f& M
' f _0 ]2 ?" S6 F#cat /etc/security/limits.d/90-nproc.conf
; o3 J* d. l- u2 G& J) o# Default limit for number of user's processes to prevent7 l0 h& Y) q2 t' |. s3 C
# accidental fork bombs.
3 V/ d1 B9 i: p% D) S5 v" \/ I# See rhbz #432903 for reasoning.5 @7 B$ T: f* S, K" z2 {0 E
! m5 A& T3 P, R* soft nproc 1024 ====>撠1024寞憭找暺憒4096撠 OK
0 _& W$ K+ ?5 K* hroot soft nproc unlimited
. l& \$ T7 d$ l
- I: j/ {5 n+ D$ P
: U6 \) k; Y* \. H c
0 l1 W F& S$ v! Q
) d: F) h D, g9 {& j6 r7 G6 w! X* f% y- E, [( d5 W
|
|