解决Too many open files报错

7年前 (2017-06-12) gtj linux, linux基础 0评论 已收录 803℃

这个报错经常能遇到。属于linux系统常规优化的优化选项之一。
临时修改:
ulimit -n 65535 #设置最大文件打开数
这样只是本次生效,不能永久生效。
设置永久生效:
修改/etc/security/limits.conf文件,
* soft noproc 65535
* hard noproc 65535
* soft nofile 65535
* hard nofile 65535

博主

这货来去如风,什么鬼都没留下!!!

相关推荐

嗨、骚年、快来消灭0回复。

×
订阅图标按钮
Less is more!!!