ulimit -n VALUE
1. 查看/etc/security/limits.conf
* hard nofile 2048
* soft nproc 2048
确定VALUE是否大于2048。
2. 先su到root,再从root su到普通用户, 再ulimit -n VALUE 就行了。
本文介绍如何在Linux系统中调整最大文件句柄数,包括检查当前设置、修改配置文件以及使用su命令切换用户身份进行调整。
ulimit -n VALUE
1. 查看/etc/security/limits.conf
* hard nofile 2048
* soft nproc 2048
确定VALUE是否大于2048。
2. 先su到root,再从root su到普通用户, 再ulimit -n VALUE 就行了。
317
3941
644
857
7403

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