系统设置的最大文件句柄数 ulimit -n,是默认值1024
临时:ulimit -n 655350
永久设置:
vim /etc/security/limits.conf
在最后加入
- soft nofile 655350
- hard nofile 655350
查看 ulimit -a
ulimit -n 655350
vim /etc/security/limits.conf
在最后加入
-
soft nofile 655350
-
hard nofile 655350
vim /etc/security/limits.d/20-nproc.conf
注释最后两行