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

原文链接

上一篇 下一篇

猜你喜欢

热点阅读