Linux内核参数调整

Write Comment

Linux内核参数调整

卷心菜 卷心菜
Abstract ## 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
Login required to read the rest of the content

登录 to comment~