How to increase the «open files» `ulimit -n` report value?

02

Step 1

Set in /etc/sysctl.conf:

fs.file-max = 99999

Step 2

Set in /etc/security/limits.conf:

* hard nofile 99999
* soft nofile 99999
root hard nofile 99999
root soft nofile 99999

Step 3

reboot

03

It works on CentOS 7 too.