?????????????????????????????????ulimit -n?????????shell??????????ulimit -n 1024000??????????????????????????????????bash????????????

???????????ulimit????????/etc/security/limits.conf??

????vim /etc/security/limits.conf

????# ??????μ???

????*  soft nofile 2048

????*  hard nofile 2048

???????????????

????* ??????????????

????noproc ???????????

????nofile ?????????????

???????????

????[username | @groupname] type resource limit

????[username | @groupname]???????????????????????????????@??????????????????????*??????????????????

????type???? soft??hard ?? -??soft ???????????Ч?????????hard ?????????????趨??????soft ??????????hard ???????? - ???????????? soft ?? hard ?????

????resource??

????core - ?????????????С(kb)

????date - ???????С(kb)

????fsize - ???????С(kb)

????memlock - ??????????????(kb)

????nofile - ???????????

????rss - ?????????С(kb)

????stack - ?????С(kb)

????cpu - ????????λ??? CPU ???

????noproc - ?????????

????as - ??????????

????maxlogins - ?????????????????

?????????

????username soft nofile 2048

????username hard nofile 2048

????@groupname soft nofile 2048

????@groupname hard nofile 2048