增加#文件描述符的ulimit [英] increase ulimit for # of file descriptors

查看:170
本文介绍了增加#文件描述符的ulimit的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

normaluser:

$ ulimit -n 4096
-bash: ulimit: open files: cannot modify limit: Operation not permitted

作为根,它可以按需工作-但不会影响normaluser.

As root it works as desired - but then it won't affect normaluser.

如何摆脱这个陷阱22?我需要它来保持持久性.

How to get out of this catch 22? I'll need this to be persistent.

推荐答案

您可能希望查看/etc/security/limits.conf

You may want to look at /etc/security/limits.conf

这篇关于增加#文件描述符的ulimit的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆