linux 高并发 文件句柄数 fs 及 tcp端口数调优
编辑 /etc/security/limits.conf
speng soft nofile 10240
 speng hard nofile 10240
 root soft nofile 65535
 root hard nofile 65535
- soft nofile 65535
 - hard nofile 65535
 
编辑 /etc/sysctl.conf
 fs.file-max = 1000000
 net.ipv4.ip_conntrack_max = 1000000
 net.ipv4.netfilter.ip_conntrack_max = 1000000
