砍敺 IT_man 2017-3-28 10:13 蝺刻摩 & m5 m5 f6 f' \* y
7 F% [& g6 _' D7 a/ j, \敺萇:
* R; |2 H& s _& O+ |% f2 c8 X2 P+ h# o9 o: D7 H1 ]: i4 d/ K$ j
憭拙粹閬敺root su 唬祉user,隞文銝:! }3 m6 \; g. r' g6 [6 k' Z! D9 d
#su someuser 蝯show error1 R0 m! Z& ?& D9 J c) n! ]& N
su: cannot set user id: Resource temporarily unavailable
% R* o' H9 n* y# E9 }9 f
/ k, h: X' n; ]1 |0 }5 h: N乩google敺交寞砍皰rocess 憭折嗆 1024:1 c& A! I3 w1 j' A2 \5 S
# {: a3 ^4 i& @#cat /etc/security/limits.d/90-nproc.conf, @) E7 x+ }, I0 G& e4 I# [
# Default limit for number of user's processes to prevent2 m' d3 W$ F1 I5 z) P- f
# accidental fork bombs.
$ V4 M8 Y. p* N# See rhbz #432903 for reasoning.
* }9 O! b8 |( u& J7 k$ _' C ^2 C
* soft nproc 1024 ====>撠1024寞憭找暺憒4096撠 OK, H' Z7 j/ A1 X7 g% a
root soft nproc unlimited
9 {8 K; |. o0 d8 v6 y% t+ e9 _5 U4 b
" |/ V- B% W3 Y) J b( u$ k# b! J( S) Z5 M
. \$ A) j) e [- N( u1 l
7 |# V9 n: }1 a. d8 X; S; C
3 w( {; L, B* _# M( u8 u |
|