天天看点

使用ulimit设置文件最大打开数

使用默认的设置:

[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 

###System open file num

fs.file-max = 819200

[root@localhost htdocs]# sysctl -p

      本文转自独弹古调  51CTO博客,原文链接:http://blog.51cto.com/hunkz/1948272,如需转载请自行联系原作者