個人筆記:
在終端輸入:ulimit -a可以查看open file 數量,一般情況是1024,但是1024不夠,需要修改的大一點
1、vim /etc/security/limits.conf
* soft noproc 65535
* hard noproc 65535
* soft nofile 65535
* hard nofile 65535
2、vim /etc/security/limits.d/90-nproc.conf
* soft noproc 65535
* hard noproc 65535
* soft nofile 65535
* hard nofile 65535
3、重啓再ulimit -a查看open file爲65535
(1、2裏面的*表示通配符,*一定要加上)