查看linux读取文件数量用 ulimit -n 查看
如果是root 权限 可以用 ulimit -n size 来修改linux读取额外年间数量
但是非root权限会报 limit command not found 的异常
非root权限的处理方法
如果是root 权限 可以用 ulimit -n size 来修改linux读取额外年间数量
但是非root权限会报 limit command not found 的异常
非root权限的处理方法
If you want to set it permanently, especially for a particular user, change the file /etc/security/limits.conf to have the following lines (assume user = www-data)
E.g.
www-data hard nofile 65535
www-data soft nofile 65535
本文详细介绍了如何使用ulimit命令在Linux中设置每个用户的文件读取数量限制,包括root权限下的设置方法及非root权限下的解决方案。永久设置方法通过编辑/etc/security/limits.conf文件实现。

被折叠的 条评论
为什么被折叠?



