Ulimit -n 用户设置内核可以同时打开 的文件描述符的最大数

修改 /etc/profile添加 ulimit -n即可

vi /etc/profile

最后还要执行 source /etc/profile或重启

一般默认为1024,修改为102400