Centos 优化ulimit
1,vi /etc/security/limits.conf
* soft nproc 65536
* hard nproc 65536
* soft nofile 65536
* hard nofile 65536
* soft memlock unlimited
* hard memlock unlimited
2,vim /etc/systemd/system.conf
DefaultLimitNOFILE=100000
DefaultLimitNPROC=65535
3,echo "fs.file-max = 6553560" >> /etc/sysctl.conf
4,vi /etc/profile
ulimit -SHn 40960
5,echo 3 > /proc/sys/vm/drop_caches
原文地址:https://blog.csdn.net/qq_32074527/article/details/139290392
免责声明:本站文章内容转载自网络资源,如本站内容侵犯了原著者的合法权益,可联系本站删除。更多内容请关注自学内容网(zxcms.com)!