linux 修改最大文件数

 

 

 

 

vim /etc/sysctl.conf
添加
kernel.pid_max = 500000
fs.file-max = 500000
修改后,运行以下命令来应用更改:

sudo sysctl -p


vi /etc/security/limits.conf
添加或修改以下行

* soft nofile 65536
* hard nofile 65536

重启服务器

 

 

查看

ulimit -n

 

posted @ 2024-05-28 16:49  AngDH  阅读(15)  评论(0编辑  收藏  举报