【初始化-limits】init_limits.sh
1
2
3
4
5
6
7
8
9
10
11
|
#!/bin/bash
#
# 2015/03/24
sed
-i
's/1024/65535/'
/etc/security/limits
.d
/90-nproc
.conf
cat
<<_LIMIT >
/etc/security/limits
.d
/my-limits
.conf
* soft nofile 65535
* hard nofile 65535
* soft core unlimited
_LIMIT
|
本文转自 pcnk 51CTO博客,原文链接:http://blog.51cto.com/nosmoking/1594632,如需转载请自行联系原作者