砍敺 IT_man 2017-3-28 10:13 蝺刻摩
$ I! w, f( g9 t1 N: E8 O D
, L) a- L/ n4 l6 e# V& X敺萇:0 L6 q$ N- U0 k% f3 O
1 V5 l$ B. z: D1 `憭拙粹閬敺root su 唬祉user,隞文銝: ~' j0 z, s5 Q: w- @" w
#su someuser 蝯show error
9 J: H i4 _6 w ssu: cannot set user id: Resource temporarily unavailable
- m9 Z1 ?3 } c+ u" P3 J7 l# ]" N& }; `8 u3 ]: D) W$ I
乩google敺交寞砍皰rocess 憭折嗆 1024:
, W3 M) X) y/ ~3 d* C# L* g
( [( \( ~# x/ o+ ^1 N. Y7 a#cat /etc/security/limits.d/90-nproc.conf1 t' m; l& [) _- p
# Default limit for number of user's processes to prevent! ~! H- Q2 m$ Z, E' ?
# accidental fork bombs.8 `! V- [ t! q5 m/ _5 i Q* h( I" s
# See rhbz #432903 for reasoning.
7 d0 f0 W' ] i- |- Y' v. u3 |
" {( C% e+ E* C& S5 K0 O* soft nproc 1024 ====>撠1024寞憭找暺憒4096撠 OK( c1 ~4 E/ ?+ a; R9 W8 L! l# h
root soft nproc unlimited: w6 m! z% `% E" `. G1 w
7 N" Y+ I- ^" |6 P
$ }* i+ j2 ]$ p. S% U
# C2 G; a2 Y2 \. G8 p
$ O. [4 j8 L$ `, @: N3 B! z: U' [' N3 O& [+ l6 Q! S& q
|
|