砍敺 IT_man 2017-3-28 10:13 蝺刻摩
4 ]/ }9 V) {4 I7 p7 V P6 M, t4 D
) `0 T1 I" j7 q' x5 g9 {敺萇:( T2 |& C9 \% x0 }, b& r0 j* T
2 c- B1 ?- J0 W, k憭拙粹閬敺root su 唬祉user,隞文銝: x, U2 ]2 _( M/ z) P& u/ E
#su someuser 蝯show error* q4 `3 c9 b$ K% I
su: cannot set user id: Resource temporarily unavailable
# c* r) E0 m' m% `9 ]# x7 C4 S9 b
乩google敺交寞砍皰rocess 憭折嗆 1024:
# Z! Q/ e9 p; s! A3 M$ @! M" U1 p9 S# a* o- j& E# J
#cat /etc/security/limits.d/90-nproc.conf6 y& @! P, a1 o% `" j0 a3 f
# Default limit for number of user's processes to prevent1 S9 Q6 M% i- y. ?
# accidental fork bombs.
/ q! U5 {0 b) S0 S! ?# See rhbz #432903 for reasoning.1 o5 g! l( o' J' a
/ v& W2 \: S$ J5 U6 X$ ]3 {
* soft nproc 1024 ====>撠1024寞憭找暺憒4096撠 OK9 Z% k. V6 z' l( F* t! `* q. {, p
root soft nproc unlimited
# S8 J. `( ~( F5 ~1 s& k: F2 l6 J5 b: ]) y$ l h3 K
$ `4 `5 c- }+ [" \9 f- Z1 _) _: |7 m7 y* |
$ K0 b+ r$ P. g$ ^+ j2 k$ Z0 [" a6 t/ I, f, L7 q; J, ~
|
|