0
点赞
收藏
分享

微信扫一扫

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



举报

相关推荐

0 条评论