- 临时解决
ulimit -HSn 65536
- 永久解决
编辑文件,添加以下两行: /etc/security/limits.conf
-
soft nofile 65536
-
hard nofile 65536
ulimit -HSn 65536
编辑文件,添加以下两行: /etc/security/limits.conf
soft nofile 65536
hard nofile 65536