砍敺 IT_man 2017-3-28 10:13 蝺刻摩 4 x* }2 t) {" A& i2 Q& }% F
7 C% u% n" @& R+ T5 s0 y敺萇:( o/ A2 L' q/ \% w: J
' x" K {4 |* D$ e4 S憭拙粹閬敺root su 唬祉user,隞文銝:
! k) t; \! P: F) _+ L# o/ e#su someuser 蝯show error' [6 ^7 `% x W. D" \9 T2 t6 t$ C' ?) Q3 Q
su: cannot set user id: Resource temporarily unavailable' U Q4 A( ~' I; o/ \- }
! V2 A2 E+ c6 P5 m9 n5 W乩google敺交寞砍皰rocess 憭折嗆 1024:
2 G7 M2 M b! p$ a* S, w6 L Z+ ], o6 B! H" l, @$ `
#cat /etc/security/limits.d/90-nproc.conf9 l- {! h& u( d! V F
# Default limit for number of user's processes to prevent
/ L$ F; f% G6 e$ y4 |6 _# accidental fork bombs.
* O4 K# k' ^( {1 u- a8 J# See rhbz #432903 for reasoning.# T- G2 V V) g; M7 ^7 c
! N* W) [+ f, b5 Q* soft nproc 1024 ====>撠1024寞憭找暺憒4096撠 OK
, G* k! j$ d# q5 @6 f, `root soft nproc unlimited
% ]. d ]/ s/ O1 `1 T1 P
5 w u1 @) r9 Z X! l
' O/ J: X# s! Q
" }; M& S" d. c; Y8 |! V7 c9 r* u& g5 ?+ N, b1 O- c1 w& s" v5 {
* Y& m8 j/ V0 j8 v9 ~5 r |
|