美文网首页
Increase “Open Files Limit”

Increase “Open Files Limit”

作者: 张广旭 | 来源:发表于2019-05-19 20:20 被阅读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

原文链接

相关文章

网友评论

      本文标题:Increase “Open Files Limit”

      本文链接:https://www.haomeiwen.com/subject/ieaqzqtx.html