Linux内核参数调整
摘要
## ulimit 设置
`ulimit -n` 要调整为 100000 甚至更大。 命令行下执行 `ulimit -n 100000` 即可修改。通过ulimit -n的更改仅适用于当前会话,如果需要永久生效,需要设置 `/etc/
ulimit 设置
ulimit -n 要调整为 100000 甚至更大。 命令行下执行 ulimit -n 100000 即可修改。通过ulimit -n的更改仅适用于当前会话,如果需要永久生效,需要设置 /etc/security/limits.conf,加入
* soft nofile 262140
* hard nofile 262140
root soft nofile 262140
root hard nofile 262140
* soft core unlimited
* hard core unlimited
root soft co
剩余内容需要登录才能阅读
登录 后才能评论~
猜你喜欢
推荐了几个