使用默认的设置:
[root@slave data]# ulimit -n 
1024
修改:
[root@localhost htdocs]# vim /etc/security/limits.conf
*                soft     nofile   819200
*                hard     nofile   819200
[root@localhost htdocs]# vim /etc/sysctl.conf 
fs.file-max = 819200
[root@localhost htdocs]# sysctl -p
原文地址:http://hunkz.blog.51cto.com/6157447/1948272