Linux修改最大文件打开数

阅读 236

2022-03-12


修改系统限制配置文件

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



精彩评论(0)

0 0 举报