使用預設的設定:
[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,如需轉載請自行聯系原作者