centos系统error: too many open files问题的处理

1. 打开编辑limits.conf文件

vi /etc/security/limits.conf

2. 插入以下内容
* hard nofile 999999
* soft nofile 999999
* soft nproc 65535
* hard nproc 65535
* hard stack 102400
* soft stack 102400

3. 查看确认是否修改成功
ulimit -a

原文地址:https://www.cnblogs.com/lavezhang/p/12419191.html