centos7 文件最大值改变

# vim /etc/security/limits.conf
* soft nofile 65535
* hard nofile 65535
# vim /etc/security/limits.d/90-nproc.conf
* soft nproc 65535


#备注
vi /etc/ssh/sshd_config
UsePAM no 不对要设置成 yes

ulimit -a
open files (-n) 65535

posted @ 2022-05-09 16:36  Mrydx  阅读(19)  评论(0)    收藏  举报