砍敺 IT_man 2017-3-28 10:13 蝺刻摩 1 m) c1 L6 Y7 K) K" R
! z& W0 b, r! e7 R: ~: _& y5 { ^敺萇:
7 d6 r# ~8 D5 \5 x1 ]6 I ]/ k; r) Q* H$ ?3 K: X) u2 o
憭拙粹閬敺root su 唬祉user,隞文銝:3 ]: C/ i) ^( W3 ?2 W
#su someuser 蝯show error
: w8 a+ }5 P; L! bsu: cannot set user id: Resource temporarily unavailable
9 c- M* H% i- C* i$ v/ h- C( n2 j' R0 n! X
乩google敺交寞砍皰rocess 憭折嗆 1024:
; n4 a# R; l, k4 l
: ]# N( p- q9 j2 R4 c#cat /etc/security/limits.d/90-nproc.conf( n, D9 t# @$ g
# Default limit for number of user's processes to prevent
0 s% g( P& ^1 g( k3 `2 h# accidental fork bombs.
/ A8 ]6 q6 z; v3 T# See rhbz #432903 for reasoning.' y! j9 }3 W6 E5 k
2 _: J; C8 K. [, P* soft nproc 1024 ====>撠1024寞憭找暺憒4096撠 OK# i6 I( r3 q; v8 j; d) g1 k# p
root soft nproc unlimited
( o6 O2 E8 F4 M, m& J/ Q. R; o. E d. B
+ Y- b3 p. `3 ~( ?, G0 R0 P; F E
( H! b5 B6 F' _/ b- B
) b2 s6 E; d" f& N3 J: ~; F p, R( f4 r1 n. \8 P% ?, T# K0 A0 |
|
|