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
本文来自博客园,作者:HumorChen99,转载请注明原文链接:https://www.cnblogs.com/HumorChen/p/18039509