Centos – How to permanently set ulimit -n 8192 in Centos 7

centoscentos7ulimit

I would like to permanently set the open file limit for all users in Centos 7, but there seems to be a lot of conflicting information out there on the googles.

Best Answer

Unless they've done something really wacky (if so, blame systemd) that's all set in /etc/security/limits.conf.

*    soft    nofile 8192
*    hard    nofile 8192

Something like that.