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
It works on CentOS 7 too.
Set in /etc/sysctl.conf
:
fs.file-max = 99999
Set in /etc/security/limits.conf
:
* hard nofile 99999
* soft nofile 99999
root hard nofile 99999
root soft nofile 99999
reboot
It works on CentOS 7 too.