1、查看当前ulimit
ulimit -n
2、修改max open files
ulimit -HSn 65535
3、修改配置文件:
vim /etc/security/limits.conf
* hard nofile 65535
* soft nofile 65535
* hard nproc 65535
* soft nproc 65535
4、查看某个进程的 open files
lsof -i:8002 #获取pid
cat /proc/获取的pid/limits