Linux修改最大文件打开数

修改系统限制配置文件

vi /etc/security/limits.conf
# 在最后一行加入以下的配置并保存退出
*               hard    nofile          65535
*               soft    nofile          65535
root            hard    nofile          65535
root            soft    nofile          65535

重新打开终端即可

# 查看用户硬限制
root@VM-0-13-ubuntu:~# ulimit -Hn
65535
# 查看用户软限制
root@VM-0-13-ubuntu:~# ulimit -Sn
65535

posted @ 2022-01-17 22:11  HumorChen99  阅读(0)  评论(0编辑  收藏  举报  来源