首页 > 技术文章 > linux limite资源限制 万能设置

hxfcodelife 2020-07-26 23:12 原文

linux资源限制 万能设置

/etc/security/limits.conf

* soft core unlimited
* hard core unlimited
* soft nproc 1000000
* hard nproc 1000000
* soft nofile 1000000
* hard nofile 1000000
* soft memlock 32000
* hard memlock 32000
* soft msgqueue 8192000
* hard msgqueue 8192000

  在Ubuntu下 不能用* ,代表所有用户,只能写具体用户,centos可以用*

推荐阅读