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?