2

I am using CentOS 7. I found out that the current value can be seen using $ ulimit -a (look for open files).

Or just $ ulimit -n

Then I try to edit these limits by editing the file at

$ vim /etc/security/limits.conf

and adding these two lines:

soft nofile 999999
hard nofile 999999

And after doing a quick reboot and checking if something has happened

$ ulimit -n

It is still the same, I get 1024 as output.

How do I change this value and make it persist after a reboot?

2

You need the user part at the start, and the wrong way around, should be:

* soft nproc 65535
* hard nproc 65535
* soft nofile 65535
* hard nofile 65535

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.