砍敺 IT_man 2017-3-28 10:13 蝺刻摩 7 D" l+ z* f& L( i2 F
) o7 N f! V+ F8 B- m9 |3 s敺萇:
5 P9 q1 f" d2 ]( Y8 Q# M# }0 O, Q. h% b5 V
憭拙粹閬敺root su 唬祉user,隞文銝:" C: ^, ]: S; ]3 G3 ?6 S7 g
#su someuser 蝯show error& J; G' p- ]" q0 F- \/ ]2 [" z
su: cannot set user id: Resource temporarily unavailable
2 R5 n# j# Q4 M$ x
0 Y% [# C# H# E3 j8 h$ z; B$ h乩google敺交寞砍皰rocess 憭折嗆 1024:
( V* f3 j1 I, Q9 U& A/ V m; t
#cat /etc/security/limits.d/90-nproc.conf$ w' }* r* b, ^7 ^6 `, n E/ S" U B) u
# Default limit for number of user's processes to prevent
, d# A) J" L& T5 y# accidental fork bombs.
/ d7 d# N- f ?+ d3 T* M: e# See rhbz #432903 for reasoning.
! q* H1 M3 l! u! A$ W: \* w- O- |* t0 N; Z2 n* P# s4 F
* soft nproc 1024 ====>撠1024寞憭找暺憒4096撠 OK
* g5 \. P) k: ?# E$ Groot soft nproc unlimited. G& B* x+ i d9 X. d
0 J4 F+ k2 C/ }7 T% H+ l
' K9 B2 |0 c% l; f
7 i$ l' A( `2 v8 |5 G2 C6 `) K$ l$ `, S& d# d# y( v6 K
; W% F* U. G; d5 X |
|