Increase “Open Files Limit”
2019-05-19 本文已影响0人
张广旭
摘要:
Modify /etc/security/limits.conf
Open file: /etc/security/limits.conf
Paste following towards end:
* hard nofile 500000
* soft nofile 500000
root hard nofile 500000
root soft nofile 500000
Once you save file, you may need to logout and login again.
Modify /etc/sysctl.conf
Open /etc/sysctl.conf
Add following:
fs.file-max = 2097152
Run:
sysctl -p